Check to see if you can tell if there is a disconnected wire or a loose battery cable. An ECU that is going bad can cause the vehicle to die, but allow it to restart. There are two modes to the ECU: full drivability and limp mode. In limp mode, the ECU has detected a problem and gives you just enough power to limp to the dealership.
mission brewery