Usually it is either a fuel delivery or ignition issue that causes stalling like that. First and easiest test is to turn the key to on position (without cranking the motor over) you should hear a buzzing sound for a couple of seconds coming from the rear beneath the vehicle. If you do not hear the buzz the fuel pump is not working. You need to find out if the pump is bad or the power feed to the fuel pump. If you hear the buzz, then you need to verify that at least 32 psi of pressure is reaching the fuel rail on the motor. If these are all good then you may have an ignition problem. This vehicle rarely has ignition problems, but you need to verify spark is getting to the spark plugs. If not you can have corroded wiring near the battery, (the ignition module is mounted next to the battery) a bad ignition coil, module or crankshaft sensor. These are rare, but not impossible faults, you need to eliminate each item one by one, taking them in the order I listed. Good luck.
I have a 1997 Exploer Sport 212000 miles, same thing started to happen to me. The first thing I tried, and the cheapest, was throttle body cleaner (do not use carb cleaner) Icleaned the butter-fly and all around and it starts just fine now.
I HAVE AN 1991 4 WHEEL DRIVE EDDIE BAUER, AT FIRST I THOUGHT IT WAS MY FUEL PUMP, YES I REPLACED IT AND DIDN'T HAVE TO, ALL FUSES AND RELAYS WERE GOOD, SO I THOUGHT IT WAS MY IGNITION SWITCH, NOT SO MY HOME BOY IS A DEISEL MACH.HE TRACED IT TO A SMALL SQUARE PLASTIC BOX DIRECTLY UNDER THE ASTRAY, WHEN YOU REACH UNDER THERE YOU'LL FEEL IT, IT'S SQUARE ATTACHED TO A METAL BRACKET, IT IS HAS A CONNECTER COMING FROM THE IMPACT SHUT OFF SWITCH, WHICH IS ON THE PASSENGER SIDE FACING THE ENGINE FIRE WALL, IT DID NOT ALLOW POWER TO GO TO THE FUEL PUMP, SO IT'S THE THAT SMALL PIECE OF SHIT SQUARE BOX, IN MY CASE, IT WOULD CRANK BUT WOULDN'T TURN OVER, I WOULD SPRAY QUICK START IN THE THROTTLE IT WOULD START AND STAY STARTED TILL I TURNED THE KEY OFF, THEN IT WOULD NOT START AGAIN, SO I MEASURED 7 INCHES FROM THE DRIVER SIDE PASSENGER WALL THEN 7 INCHES BACK TOWARD THE HUMP BEHIND THE SEAT AND I CUT A 7BY7 INCH SQUARE TO GET TO THE FUEL PUMP, THAT I DIDN'T HAVE TO REPLACE, JUST THAT SQUARE BOX FIXED THE PROBLEM ITS PROBABLY A RELAY IN THAT BOX I HOPE I HELPED TODAY I FOUND ANOTHER PART NUMBER ON THE UNIT E9EB-10D840-AA ITS CALLED THE DOOR CHIME CONTROL MODULE, ITS TIED IN WITH THE EMERGENCY GAS SHUT OFF THAT I EXPLAINED EARLIER ITS DRIVING FINE NOW OOMK