While it’s a good thing that your car turns back on, it doesn’t mean that your vehicle doesn’t have an issue. There could be one of several things going on to cause your car to turn off and turn back on while driving:
Faulty ignition coil
Dirty fuel injector
Malfunctioning battery
Bad fuel pump motor
Dirty fuel filter