Several factors could lead to your laptop malfunctioning or refusing to turn on. If your laptop remains unresponsive despite being plugged in, ensure the power cord is undamaged and correctly connected to the wall, if damaged you should replace it. Additionally, assess if your laptop feels excessively hot, as it might be overheating and requires time to cool down. (refer to the question: How to properly cool your computer and prevent overheating?)
If your laptop continues to exhibit issues, consider replacing the battery as a potential solution.