While driving (30-55mph), the car hesitates around 3000 rpm when accelerating, but stops if I continue or reduce speed. What could be the reason?

I have changed the spark plugs, oil, air filter. My thoughts are the fuel filter or pump.