It sounds as if the fuel filter is clogged and not getting enough fuel to the injectors.
Start with replacing the fuel filter, it may be plugged.
There are multiple things that could cause this, your best bet it to take it to a mechanic and let them check it out.
Could be a fuel pump going bad or a clogged fuel filter,
TCC Solenoid.
They start to sputter,stall and stop running.
Stalling at idle? Immediately after starting? While driving? While stopping? Cold or hot engine? What engine do you have?
Check your voltage regulator and alternator. You're getting enough juice to either run the engine or the lights but not both.
it could be vapor lock
coz you shud of gone to specsavers
FUEL PUMP IS YOUR PROBLEM {why do you think its the fuel 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.