If the Internet is accessible on other devices, the issue is with your device and its WiFi adapter. If the Internet does not work on other devices, the issue is most likely with the router or the Internet connection itself. Restart both your router and modem if they are separate.