engine on 1998 Dodge Ram Van 1500

start motor and runs, then dies hard to start. driving and all the sudden cuts out , it has backfired or it just dies,i have replaced cap,rotor,plugs,o2 censor,ignition coil,new battery,could it be the TPS the throttle position sensor

Asked by for the 1998 Dodge Ram Van 1500
It is more likely than not, The Crankshaft position sensor.located on the passenger side of the engine where the transmission mounts to the engine. Another less likely component is the Camshaft position sensor or
(Distributor Pickup plate) located underneath the rotor.
thank you very much