Loss all power when driving.
What you describe sounds like a charging system failure. If the alternator isn't working, the car can run on the battery for a period of time, until the battery voltage gets below a certain point, usually around 10.5 volts. After...