The most common cause is a failing crankshaft position sensor. When it stalls, does it start right back up for you? If it doesn't, we need to check for spark at the plugs when it doesn't start.
Repair Safety Notice: This information is for general instructional purposes only. Vehicle repair can be dangerous. Verify all information, follow manufacturer service procedures, use proper tools and safety equipment, and consult a qualified repair shop when needed.