Why does my car keep turning off while driving?

I drive a 2002 Honda Accord coupe 6 cylinder & lately it's been turning off while I'm driving. The car just turns off & I always have to end up pulling over. When the car turns off, all the lights on the dash turn on including the TCS lights, brake light, door open lights, etc. When I try to start it back up it just tries to but doesn't. I usually wait about 5 minutes & it ll start again but it's been happening way more often now.

Read more: Why does my car keep turning off while driving?