Running fine then died, now won't get up rpms? on 2002 Nissan Xterra

Ran fine then died engine light came on. Now when give gas the rpms are not going up. It seems to be sputtering.

Asked by for the 2002 Nissan Xterra
2 answers
Possibly clogged fuel filter
bring it in for diagnostic run. poss. tune up needed. poss. fuel issue(pump maybe). diagnostic should confirm any issues.