I replaced the alternator, battery, egr valve,
crank, spark plugs, car still won’t start it cut
off while driving
Don't replace anymore parts until you scan for codes. It sounds like the crankshaft position sensor, code P0320. It is a common problem on this engine. You may have notice that the tachometer reading drops suddenly when the engine cuts out while driving. That's your loss of spark doing all that. Buy a quality part and install it correctly IF that's the problem...scan first.