Whatever it is appears to be temperature related. It would help if you were able to get the code(s) in the PCM (powertrain control module).
Do you hear the fuel pump run for the 1-2 seconds when you try to restart it?
This forum is owned and operated by Internet Brands, Inc., a Delaware corporation. It is not authorized or endorsed by the Ford Motor Company and is not affiliated with the Ford Motor Company or its related companies in any way. Ford® is a registered trademark of the Ford Motor Company.