Simply put, if the battery is, or, was low, you need to fight to keep the car running for a few minutes to relearn a few things.
I can tell you that even if the battery will start the car, you might still have trouble with the alarm causing the motor to die.
Again, the battery is most likely...