Well first things first.....what is the code the CEL is giving?
Second, what motor and trans, the more info about your truck the better, lots of combinations built.
That's the first piece of the puzzle.
I had something similar years ago on my 91, 5.7, turned out the distributor shaft was...