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.