A defective crankshaft position sensor is also a possibility.
Happens a lot when that when the sensor gets warm/hot the signal is faulty at low engine speeds.
When does the car cut out? When breaking or being stopped at a traffic light or during normal driving at a constant speed?