Delete your Wi-Fi connection from within your Mac’s Network Preferences and re-add a new one.
Background of Problem: Your Wi-Fi is working for other devices, and your Mac even connects to your Wi-Fi, but you get no internet. This might be because of an IP problem.
Here’s the quick fix: Go to the Network Preferences (Wi-Fi Settings) menu on your Mac and remove and restore the Wi-Fi connection.