Engine on 2003 Dodge Ram 2500

When I droving down the road the engine cuts out. It starts back up. I was told to change the fuel and air filter and I did. It's still doing it but not each day. What next?

Asked by for the 2003 Dodge Ram 2500
It is possible that your Crankshaft Position sensor is failing intermittently. This will cause your Powertrain Control Module (PCM) to shut down the fuel system.