If it runs with the throttle cracked, it's probably the IAC stuck closed. Make certain you reconnected it.
The TPS just tells the computer what the position of the throttle is, but the IAC has to open in order for the engine to breathe. If it doesn't the engine dies.
Steve