First make sure the power supply is good and the battery is charged?
If those are OK, try this...
Unplug the power supply and also remove the battery.
With both sources of power removed , now press the power button a few times
Then reinsert battery , power supply & try again.
If that doesn't work, I would ask you this....
You said the " laptop was working and lid was closed".
Meaning, the computer was running and when you returned it ws off & then unable to power back on?
If yes,.... was it laying on something like your bed , sofa, etc....?
If yes, ..... then the air vent for the fan may have been blocked, causing it to overheat.