Check Engine Light came on then car wouldn't start on 2004 Ford Explorer

We just bought this truck used and the check engine light suddenly came on after driving it a few times. Then the car wouldn't start. I waited a few moments, tried again and then it started. Any idea what might cause that?

Asked by for the 2004 Ford Explorer
There are hundreds of codes that will set your check engine light. see have your Ford scanned and then have the code traced down The used car dealer should do this FOR FREE!! Best of Luck!