why would the engine not start back after turning off? on 1999 Mercury Sable

This has happened 3 times in the last year. After a few sitting fore some time (hour or so) it starts back.

Asked by for the 1999 Mercury Sable
Possibly a crankshaft position sensor, about $20 at AutoZone