This is almost certainly the Darksword Trilogy, by Margaret Weiss and Tracy Hickman (of Dragonlance fame).
The overall story follows Joram, who is the heir to an empire, but is born "dead", without magical power in a empire where magic is life.
From wiki, the description of Joram:
The son of the Emperor and Empress of Merilon, and heir to the throne, Joram was born completely Dead (devoid of magical power) in a society where magic is considered life. He is left to die but a distraught woman named Anja finds him and takes him to replace her own stillborn child.
Anja teaches Joram sleight-of-hand tricks and non-magical illusions to conceal the fact that he has no magic of his own. Joram's lack of magical ability is discovered and he flees to the Outland while Anja dies trying to protect him. In the wilds of the Outland, Joram joins the outlawed Technologists who are practicing the long-forbidden Mystery of Death, Technology.
There he plans to forge the Darksword, a blade capable of absorbing magic. However, his plans are delayed because forging such a sword requires a Catalyst (special magicians that have little personal magic but are necessary to enhance the magic powers of all the others). Saryon is sent by Bishop Vanya, ostensibly to capture Joram. The two are opposed to the tyranny displayed by Blachloch, and Joram convinces Saryon to help him forge the Darksword. Then, together with Simkin and Mosiah, they leave the village for Merilon so Joram can claim his heritage.
Joram and Gwendolyn live "Beyond" - the technological Planet Earth - for ten years (but only one year in Thimhallan time), and Gwendolyn goes mad. Joram meets Menju, a mage from Thimhallan. Simkin changed into a copy of the Darksword and placed by Joram on Merlyn's tomb. Merlyn's spirit was awakened and transported mankind and the Magic to a new world, so men could make a new start.
With this, Joram fulfilled the prophecy: He was born Dead and lived, died by Smythe's poison and resurrected by Simkin, and held his hand into the destruction of the world (by the Hch'nyv) or its salvation (by awakening Merlin who saved mankind).
The series starts with Forging the Darksword from 1987, and covers Jorams efforts to bring back the outlawed Technology to take the place of magic..