If we are talking about a mechanical fuel pump. I have had this problem before.
First step is to disconnect fuel line from input of fuel filter.
Insert the end of the hose into a temporary approved fuel container

Crank engine.
Check if fuel transferred into container.
If so, you need to check for problems with filter/carb.
If not, disconnect hose from fuel tank to fuel pump.
Install hose of proper size and length to run from a temporary can of gas to the input side of fuel pump.
Crank motor.
If fuel didn't transfer then your pump is bad.
If adequate fuel transferred into the original temporary fuel container your fuel pump is at least good enough to start your engine. The problem is between the tank and the fuel pump.
Could be clogged in-tank filter. Pickup in tank with hole above fuel level sucking air. Clogged fuel line. Or what mine turned out to be... the rubber fuel line between the steel lines on the frame at the tank and the tank pickup were rotten so the fuel pump was sucking air ahead of the tank.
Of course this is assuming your fuel gauge works, and you actually have fuel in the tank.