HOW TO FIX CAR THT STARTS WHEN ITS COOL OUT BUT WONT WHEN ITS HOT OUTSIDE OR CAR HAS GOT HOT FROM DRIVING?

1999 Chevrolet Cavalier • 129,000 miles

Car will start fine first thing of a morning while its not so hot outside but once the temperature is hot and the car gets hot then its will start when u turn key for a split second and then shuts off and will continue to do this until the next morning. We have replaced the fuel pump, fuel filter and the throttle/pedal position sensor and it continues to do this same thing. Also when it wont stay running my mileage wont come on its digital and my speed gage wont tell me how fast im going and the gas gauge is reading how much gas is in car. Can someone please help with this problem because car has been sitting for 6 months now and need it to get fixed.