Blake, the easiest way to fix it would be to read the codes.
Even though the CEL isn't on all the time, there'll still be
codes present. The code will tell which direction to look.
(Most auto parts stores will read the codes for free, in hopes
you'll buy the needed parts from them.)
As to the TPS, it has 3 wires, and the middle wire is the ground.
One of the outside wires is the reference voltage which is 5v.
The other wire is the signal wire, which will vary from about 1v to
about 5v as the throttle is advanced.
I can't tell you which outside wire is which, but you can backprobe
each one with a voltmeter and find the one with 5 v (with key on).
That's the reference voltage wire, and the other outside wire will be
the signal wire, and should have about 1 v on it with the throttle closed.
(A common straight pin is good to stick into the wire for a backprobe)
You are looking for a smooth transition from 1 to 5 v on the signal
wire when the throttle is advanced. If the voltage is erratic, then the
TPS is bad. It's easier to see this with an analog voltmeter if you