The Fuel pump could be a culprit, but i would like to know what fault codes are stored causing the EPC light to turn on.
EPC light will also turn on when the mass air flow sensor is failing, also causing the engine to stall out.
If you take the car to an Autozone or Advanced Auto/Kragen they will be able to scan your fault codes for free, Write the fault code numbers down (ex. p0301)
This will be the best bit of information to help you resolve this issue with your car!
Your engine speed sensor is faulty.
If you would like a procedure on how to test it or a explaination of how to replace it let me know i can provide you with this information.
No the speed sensor would not cause any issue's with your cooling fans.
You should have 2 Cooling fans.
One that runs whenever the engine is running and your auxiliary fan, which operates when the AC is on or the engine is getting hot.
The Auxiliary fan will cycle on and off, if i recall correctly it will turn on in 15 second spurts.
If the engine is not overheating i would not be concerned with the fan operation.
It could be, but nothing that is not normal.
When engine speed sensors start to fail they will stall the engine out randomly, ex. when the engine is warm when the engine is cold, when the car is moving, when its idling, its hard to say because the engine speed sensor is so critical to the engine's ability to run when it has a glitch in the sensor the engine will stall out.
If you would like the information on how to check this sensor to make sure 100% it has failed and the root of your issue i will provide you with this information, but i am about 98% sure this is the reason your engine is stalling out.
Was the engine overheating? (This will be a seperate issue)
Before performing test, make sure that sensor is correctly installed and firmly seated
Disconnect Engine speed (RPM) sensor connector -G28--3-.
To gain access to the connector, remove coolant expansion tank bolt (arrow) and move expansion tank to the side. Fuel hoses remain connected.
Connect multimeter between terminals 2 and 3 to measure resistance
Specified value: 730...1000 Ω
The resistance value of the Engine speed (RPM) sensor -G28- is associated with a temperature of 20° C. The resistance increases if the temperature increases
If specified value is not obtained:
Install new Engine speed (RPM) sensor -G28-.
If specified value is obtained:
Connect multimeter between terminals 2 and 1 -screen- and 3 and 1 -screen- to measure resistance
Specified value: each case ∞ Ω (no continuity)
Install a new Engine speed (RPM) sensor -G28-.