Agree the fuel pump might be the problem, but best to check fuel filter first. Always look at cheapest, simplest causes...
I had the check engine light come on in my Sentra, took it to the dealer, he put it on the computer and it said EGR valve.
So drove it home and started working on removing egr, and while getting ready, noticed that a rubber hose that did about a 90 degree turn going to the EGR had a monster crack in it.
Replace the four inches of hose, light went out, never came back on. Worked like a champ.
About a 75 cent fix. Beats the hell out of taking to a mechanic who would charge me 300 bucks for a new egr valve!
My mother pulled into the driveway to fast once and it tripped the fuel shutoff switch. Was running fine when she parked it but wouldn’t start. Tow truck guy look in her manual and found the switch. Reset it and fired right up.