Hi, there can be various reasons for this try some of the following ways hope this will help you.
try to open different browsers , Can you connect if you move your device closer to your router?
try to restart your device. This is a standard troubleshooting solution and could be the fix you need to get connected to Wi-Fi again.
Your next step is to check your network adapter. Sometimes connection issues arise because your computer’s network adapter might not be enabled
network adapter could suddenly stop working if it overheats. To fix hardware issues, you can take your device to a repair store and see if they can assist in replacing any hardware. Depending on the age of your computer or other device, you may need to purchase a newer version of it.
thanku