2004 Cadillac SRX quits, but starts up again

What would make it just quit running and then start back up later on ?

A failing crankshaft position sensor.