What would make a car stall while driving?

Bad gas, water in fuel, Low fuel pump pressure, dirty air flow sensor screen, one or more engine sensors defective and/or out of normal reporting ranges, engine control computer defective. Low battery and alternator output. The "check engine light" should have come on to give you a hint.