O.k.,there are two common components that can cause this type of fault here on your vehicle.This doesn't mean that either of these two are the cause but they are the most common.
First and most common is a faulty crank position sensor.This sensor is located on the drivers side of the engine below the drivers side cylinder head mounted to the block where the top of the transmission
This sensor is common to heat up with engine temperature and when it becomes weak it will cause a signal loss.Then when you go to restart the vehicle it may not restart as this sensor is not sending out a signal until the vehicle has sat a period of time to cool down.Once cooled down it will usually restart but repeat the problem soon after or after it has been shut off.This sensor is around $100 from a dealer and a local parts store and about 1 hours labor to have replaced.When this sensor fails when cranking over the engine if a scan tool is plugged in and the engine rpm data observed on the scan tool there would be a 0 or very little rpm signal,this helps in identifying if this sensor is the cause.
The other component is the fuel pump in the fuel tank itself.If no hum or buzz noise is heard most likely this pump is failing needing replaced.This would need to be checked when the vehicle is acting up with a fuel pressure test gage threaded onto the test port on the engine to see if there is any fuel pressure present.
I would say with what is described here I would lean more towards a failing crank sensor as this is most common and fits what you have posted here.This problem should be corrected before driving the vehicle to far as it may fail all together and not restart.If it were mine I would replace this sensor.
is my profile if you need anything in the future on your vehicle here,you can save it to your favorites and come back if you have any future questions on your vehicle (besides this question here).