What would make a 2000 Frontier cut-out and engine run rough after it has been driven a couple of miles I have replaced the spark plugs plug wires distributer cap and button and inline gas filter?

Distributor module and crank position sensor