2006 Ford Explorer - is my fuel pump failing?

My vehicle haven’t been running since 3 years just got it put together new motor, etc. How do you know if your fuel pump is bad? My car did stall on me. Someone told to hit fuel pump and it started . Do that mean my fuel pump is bad? Or could it be a faulty fuel pump relay? Please help me!

That would point to a failing fuel pump