engine quitting on 1998 Chevrolet Lumina

while driving, the car quits running. Place in "N" and it restarts. The engine revs up and down prior to quitting. is this the mass air flow or the ignition switch?

Get Your Car Fixed at a RepairPal Certified Shop.
We certify shops based on expertise, quality work, and verified customer reviews
1 answer
It may be the MAF Sensor, but unlikely that it's the ignition switch. The ideal next step is to check the diagnostic trouble codes, has that been done? And I would also check the fuel pressure.