That happened to me yesterday.

My alternator failed, so when the battery drained, not enough power to keep it running.

Check your voltage just in case it is a similar issue.