Could be a couple of things. First check the wire harness that goes over the top of the engine. I found a wire that rubbed and was shorting out. The seat switch could be going. The vent on the fuel cap could be plugged, the next time it quits loosen the cap and run again. If it stays running after that then you know. It could be the pullin coil on the fuel pump, A1A module but I wouldn't get into the electrical components just yet.