Car runs, gets hot, then dies. Cant restart until cooler.

Did you replace the fuel filter ? ?