If the "check engine" light is on the computer is NOT saying that all is OK. The light is there to tell you that you should read a code. It may be one of those codes that goes away next time the engine starts, so it would be a good idea to buy a code scanner and have it with you next time the engine dies, then you could read the code and see what the computer is trying to report.
FUEL PUMP IS YOUR PROBLEM {why do you think its the fuel pump?}
You will need a engine scanner to do that. But there is a problem in the computer system--Emission system, and if you did not fix the problem then the light will just come back on again. Some parts stores will scan the engine for free.
We have a 1998 Intrigue and I can tell you why we were losing power and it was getting kinda' scary, although it would start right up again after I pulled over, put it in park and restarted it. We had an oil leak and it was dripping on to a sensor.
you restart the computer then turn it on again
The computer turns the AC clutch off when accelerating for maximum engine power. The AC compressor uses up some engine horse power.
place key to position 1 and press botton left of odometer reading for 30 seconds then to position 2 and do same again then start engine! if this doesnt work then! waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!
When you reboot your computer, your computer restarts, or starts again. This is just like restarting your computer.
Could be a problem with the wiring from the computer to the sensor.
check fuse. they are all conected.
turn it off again
The Service Engine light on all newer cars comes on because the engine control computer gets a signal from a sensor that is not within limits set by its program, thus indicating that the engine or the sensor needs to be serviced. The engine control computer can be interrogated with a device that plugs into the car. Most car parts stores will do this for you for free. That device can also reset the engine control computer getting rid of the offending code and the check engine light but if the problem is not fixed, it will just come back on again. After the problem is fixed (for example, you change an offending o2 sensor), you can reset the computer yourself by disconnecting the car's battery for a minute or two and then reconnecting it (take care and read the car's service manual on how to do that). It will take some driving for the engine control computer to reset before the car can undergo inspection by your state (usually about a half hour of driving or so).
More info is needed for an accurate solution. Does the car start right up again? If so, your may consider cleaning your fuel injector. Does it sputter just before dying? Does the engine crank quickly without having to push the gas pedal? Does it idle high at times, then seems normal for a while?