When it dies, turn the key on and off, and listen for the fuel solenoid click. If no click replace. If it clicks then pull the spark plug, and see if you still have spark. If no, then replace ignition module. If those two things don't turn up anything, then post back with the model number info for the engine, and will explore other possibilities.