Find whether the issue is your PC, router or provider
First, test the same Wi-Fi with your phone. If both devices fail, start with the router or internet provider.
Toggle Wi-Fi off and on, reconnect, restart the laptop and power-cycle the router if others also cannot connect.
Windows 11 has a Network and Internet troubleshooter in the Get Help app. Follow its diagnostics.
Temporarily disconnect your VPN and review Settings, Network and internet, Proxy for a configuration you did not intend.
In an elevated Command Prompt, run ipconfig /release and ipconfig /renew. Re-test the connection.
Run ipconfig /flushdns. If names still fail, test a different website and check the configured DNS server.
Only after easier steps fail, consider Settings, Network and internet, Advanced network settings, Network reset. Note VPN settings may be removed.