Look to the PCM (powertrain control module) or the various sensors, especially the VSS (vehicle speed sensor) and TPS (throttle position sensor). Check all the associated wiring as well for any chafed insulation or broken wires.
Also, you'll definitely want to scan for any codes. If you have a scanner that is capable of viewing transmission data that would provide very helpful information.