2012 escape 6 cylinder won't start no electrical connection, no idiot lights,
on 2012 Ford Escape

Second time for this issue. Acts like battery is dead. Opened hood and after short period, vehicle started. Acted like there was an open electrical thermostat that had opened after and opening hood, it cooled and closed the circuitry allowing vehicle to start. Any suggestions as to what may be wrong?

Asked by for the 2012 Ford Escape
take it to the dealer could be still under warranty
this is what my car is doing dealer isn't an option right now does anyone know anything