Have a Car Question? Ask a Mechanic Online.
Hello and welcome to JustAnswer!
Do you know if you're losing spark when this happens? If you're losing spark then it is going to be a problem with the ignition in the distributor, the coil, or a momentary loss of power to the ignition system. Depending on exactly how it acts it may be hard to determine if you're losing spark, but if it doesn't restart immediately that would be a perfect time to see if you are missing spark.
If so then the first thing you'll need to do is check for power at the coil with the key on. This power source comes from the ignition switch and through a resistor for normal operation with the key on, assuming the coil is still wired through factory wiring.
If power at the coil is ok then the igniter in the distributor may not be sending a signal or it could be a wiring issue between the distributor and coil.
If all of the ignition parts were replaced in an attempt to fix this problem and it's exactly the same then you should be able to rule out the coil and igniter. If you're missing spark despite replacing all these parts and it's still the same then you have to be losing power somewhere on it's way to the coil.
A loss of fuel can also cause the engine to backfire and die but it would usually hesitate and lose power right before it dies.