4.0?
I assume it's a 4.0. First thing is to make sure there are no vacuum leaks. From there you might make sure your injectors are clean (I recommend the BG stuff). At what rpm will it keep running? Could be an idle motor, throttle position sensor. Can you give a little more info?