I have a 05 dodge ram 5.7 it’s turns off on me while driving and both my fuel gauges mark zero when it dies fuel pump gas been replace, alternator and battery as well but still has that issue I’m still trying to put grounds on but I have no clue what it could be.
I had an issue with my 2006 where my heavy pile of keys was pulling on the ignition switch too much and wore it out in about four years. When I would hit hard bumps (like a railroad track) sometimes the entire truck would shut off. I finally replicated it jostling the ignition while driving; as long as I shifted into neutral the truck keeps rolling and you can restart the engine to keep driving. Check that out.