What is causing the engine shut off when vehicle is being operated? on 2008 Volkswagen Jetta

This occurs once every two or three days. Problem just began @ 51,000 miles. Runs perfectly, then just shuts down. Starts right back up.

Asked by for the 2008 Volkswagen Jetta
Likely problem is the fuel pump or the engine speed sensor. Tough to diagnose the fuel pump unless a technician can duplicate the problem. It is an electric in-tank pump. If there is a fault stored in the ECM for implausable signal from the engine speed sensor, I would go with that first. (although constant cranking without the engine turning over can leave a false code in the ECM)