There are two sensors that you need to concern yourself with.
The first is the Throttle Position Sensor, or TPS.
This is located on the side of the throttle body, and can be affected by dirt, water, ect.
Take it off and clean it and the plug and see if that helps.
Maybe time for a replacement?
The CPS is the Crankshaft Position Sensor, and it is located on the upper part of the bellhousing, but not sure where.
Either of these will cause random stalling, or dead engine.
When the CPS went in one of my Jeeps, sometimes it would take 5 tries to start it, sometimes 50. Luck of the draw to get the crank in the proper position to fire.