Chevy 7.4 won't keep running

I have a 1995 Chevy 7.4 that will fire when I squirt the starter stuff in it but it won’t keep running. How can I check the fuel pump or injectors or whatever to see if the gas flow is operating?