I recently had a similar issue, which was the CPS (crankshaft position sensor). They tend to fail when hot, but work when they cool down, and rarely throw a code. If it seems to be heat related it's probably the CPS.
If not, check the fuel pump relay, you can jumper the relay or do the 'click test' (put a finger on the relay and feel if it clicks when you turn over the car). If it's not one of those, pressure test the fuel system. If the pressure is low, then it is probably the fuel pump.
You can do a preliminary fuel pressure test, which is very unreliable, by taking the fuel cap off, and have someone turn over the car and listen for a whistling/sucking sound. If you don't get one, there is no pressure being created. You could also try replacing your gas cap, if the o-ring is bad there could be a pressure issue.
Best of luck!