If it starts normally cold, but dies or won't start, electric fuel pump could be going bad. The worse the pump gets, the faster it will happen. Basically, the pump overheats and doesn't work, so there is no fuel pressure. When the pump cools down, it will work for a period of time depending on how bad the pump is, then it will stop working.
Found this out working in the mountains. When I was moving to FL from CO, My truck was having that issue, so I pulled into a rest stop and called a tow service. By the time they arrived, it worked as it had cooled down, and I/we tried to get it to the dealer as I was moving. They ended up towing me as it only worked for about 2 minutes. At the dealer, is sat outside so long, it once again worked, and the young mechanic said the same thing, 'I can't find anything wrong'. I explained the problem, and demanded that the pump be replaced. I made it to FL after that...