While driving to work both my break and battery life came on. When I parked my car at the job I was idling in the parking lot all of sudden the engine turned off. I tried restarting the car and only the electronics turn on in the vehicle not the engine. Then when I try turning it off all electronics go dim and car sometime still stay on. Once I get car completely off I turn back on and everything works again (including engine) but battery light and break light still on. After one minute the engine dies and after 5 min all the electronics slowly start to die. Next morning I got a jump and engine worked again for 3 mins then dies electronics took a little but it died too. What could be the problem ?