A 1997 Infiniti QX4 may shut off while driving due to several potential issues, including a failing fuel pump, clogged fuel filter, or ignition system problems, such as a faulty ignition coil or spark plugs. Electrical issues, such as a weak battery or bad alternator, can also cause the engine to stall. Additionally, problems with the vehicle's sensors, like the crankshaft or camshaft position sensors, may lead to unexpected shutdowns. It's best to have the vehicle diagnosed by a professional mechanic to identify the exact cause.
If you lost power while driving it could be the alternator. Its not charging your batter anymore
timing belt probably
Mine was the egr valve fixed the shutting off
Ford f350 super duty shut off and lose power while driving
car starts but shut off while driving
try the cam shaft sensor
Out of gas
Probably the alternator.
Possible a bad or corroded ground cable .
Peeing off the side
no gas
yes just push the emergance brake one click.