Fuel pump will likely make noise before quitting on you, if the filter is clogged it is not much fun getting the pump out of the tank.

It also be that the various sensors are unhappy, check the throttle body to see how much gunk is there.

Before getting in depth, I am assuming this is the 4.0L but it never hurts to ask.

www.naxja.org is the absolute best cherokee website anywere, and their tech forums have a wealth of information. plenty of CO folks are active there too.