It is most likely a problem with your electrical system or with your fuel system. You may want to try putting in more gas in your car to see if you just have bad gas.
It sounds as if the fuel filter is clogged and not getting enough fuel to the injectors.
it could be vapor lock
Stalling at idle? Immediately after starting? While driving? While stopping? Cold or hot engine? What engine do you have?
how to in stall a Quarter Window in a 98 Chevy blazer
Does this happen when you come to a complete stop or while you are coming to a stop? Is this Truck Automatic or Standard? Brake booster could be something, Torque Converter Clutch Valve not disengaging(Automatic).
could be that the choke is not adjusted right
There are multiple things that could cause this, your best bet it to take it to a mechanic and let them check it out.
engine will stall out and run very bad.
Could be your crank sensor. These are very common to fail on these cars.
with me it was the o2 censer
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.
Oxygen sensor