Trouble shooting electrical gremlins are a real pain. I would start with the ignition switch and wiring under the dash. Since you mentioned the headlights, I'm assuming you were driving during darkness or you wouldn't have known they went out. If that's the case, start there and do this at night. Turn the headlights on and wiggle the wiring under the dash. If the lights go out, you can start tracing the wiring and locate your bad ground. If that doesn't work, go the the console where your shift pad is and work there. There is a speed sensor module on the tranny that sometimes gets dirty or loose that also gives your symptoms. Best of luck...unfortunately there's no simple 'look here' solution to your problem. It's simply a matter of tracing it down or waiting for it to break completely, then you meet Mr. Murphy.....Dennis