I just bought a 1997 mustang with a v6 3.8l that was idling and running rough. Check engine light was on & Autozone said it needed a camshaft sensor. I replaced the sensor & shaft that was bad. Now the car will start & idle but when I put it in gear it dies. It also misses when you rev it up when idling. It now is showing code P0320 (Ignition/Dist Engine speed Input Circuit malfunction). The car will idle until it warms up & then it will die & not restart until it cools off. Does anyone have a clue what is wrong???????? Please help as I need to get this running for my son so I don't have to drive him back & forth to work. Freeze data on scanner reads: Load value 56.4%; coolant temp 176 deg; short term fuel trim 1 14.8%; long term fuel trim 1 0%; short term fuel trim 2 16.4%; long term fuel trim 2 10.1%; short term fuel trim 3 28.9%; long term fuel trim 3 50%; long term fuel trim 4 -43.8%; short term fuel trim 4 76.5%; fuel system 1 closed. I/M Monitors on scanner reads: Misfire monitor OK; fuel system monitor OK; comp component OK; Help Please!!!!!!!!!!!!!