First break down(s)

The strainer or sock in the tank can cause one to run out of gas too.
As suggested above recreate the fault 1st. When it quits imediately look for that squirt from the accelerater pump.
I sincerly doubt the mechanical fuel pump is the problem. It's lever can stick in the down position causing it to stop pumping but thats rarely if ever intermitent. They stick and stay stuck or they leak and keep on leaking.
Good luck