putting gas in the car does not fix the fuel pump... the fuel pump is a part... its what puts the gas into the engine..... putting gas in the car only fixes empty gas tank.
No spark due to a bad crank position sensor, a faulty ignition module or PCM, a problem in the ignition circuit (ignition switch, antitheft system, wiring, etc.), a faulty park/neutral safety switch, a bad ignition coil (only on engines with a single coil ignition), or wet plugs or plug wires (did it rain last night, did you just wash the engine?)
A less common cause is a worn starter that draws so many amps while cranking the engine that there’s not enough juice left to adequately power the ignition system and fuel injectors. Contributing factors might be a weak battery and/or loose or corroded battery cables.
No fuel because of a dead fuel pump, bad fuel pump relay, blown fuel pump fuse, plugged fuel filter or line, or failed PCM injector driver circuit or injector power supply relay. Or, the fuel tank might be empty (don’t believe what the gauge is telling you), or the fuel tank might contain contaminated fuel (water or too much alcohol) or the wrong type of fuel (whoops, somebody put in diesel instead of gasoline).