You could check the fuel pump fuse for corrosion or a loose connection. Removing and installing the fuel pump fuse a few times usually guarantees that connection is good. So does a new fuse.
But more likely is a fuel pump relay. Over time, contacts in relays wear, and can get inconsistent towards the end of their life. They're not a whole lot of money, and they're very easy to install. If you're worried about intermittent breaking down, maybe buying one as a guess isn't a bad idea.
If it were me, I would probably wait and see if the problem ever returns again. If you check out how a SPDT relay works on the internet, you'll see how to temporarily jump one. If you really wanted to, you could make up a jumper wire that is about 12 gauge wire, 3 - 4" long, and has a male spade connector on each end. Keep that jumper with you, and if you ever have a relay go bad, you could easily temporarily jump the relay by installing this cheap jumper.
For that matter, if you got caught on the side of the road, you could just steal a relay from something else, and temporarily install it as a fuel pump relay to get you home. Im sure there are other identical relays under the hood. Maybe one for Air Conditioning, or some other non-essential component.
Whatever you do, you should at least figure out exactly where your fuel pump relay and fuel pump fuse are, so you know. And once you find them, at least unplug them and plug them back in to make sure they have a good connection.