Sounds like the engine is not getting enough fuel. This is most likely caused by a clogged fuel filter. If you replace the fuel filter, and it still has this problem, either the fuel injector(s) are clogged, or there is a problem with the fuel pump or fuel pressure regulator.
I hope this helps!!!