Sounds like a bad TPS to me, if it runs the same pluged and unpluged, either a sensor or the circuit, most likely the sensor.
You should check the wiring, should have a 5 volt signal in one if the 3 pins (dont remember which one, check em all), to make sure you have a good circuit, with key on. If you get a signal, replace the TPS since it is the likely culprit.