There are multiple things that could cause this, your best bet it to take it to a mechanic and let them check it out.
Start with replacing the fuel filter, it may be plugged.
It sounds as if the fuel filter is clogged and not getting enough fuel to the injectors.
TCC Solenoid.
Could be a fuel pump going bad or a clogged fuel filter,
The EGR valve on a 1994 Chevy 1500 is located on the top of the engine. If the valve becomes stopped, the engine could idle rough or stall.
They start to sputter,stall and stop running.
coz you shud of gone to specsavers
FUEL PUMP IS YOUR PROBLEM {why do you think its the fuel pump?}
Sounds like your not getting enough fuel. Try a new pump.
how to in stall a Quarter Window in a 98 Chevy blazer
A faulty muffler will not cause this but a clogged catalytic converter will.
it sounds like you may have a short somewhere in your lighting wiring. its grounding out and stalling the motor.