1st rule of trouble shooting.
Resolve you're codes before trying to fix anything.
1 code can make you're ecu throw other codes which are not actually there.
Concerning you're tps, you need a voltmeter & a helms or haynes manual

Or you can just check you're tps sensor for 5v at wot on the middle wire of the plug.
I do not remember what the manual says to do to test a tps. But I believe that is the proper way to test it.
You're speed sensor might be bad... Check you're wiring & again get a manual & read how to trouble shoot it using a voltmeter.
Voltmeters are handy tools
Good luck.