Sometimes you run into an issue with one particular device. It’s probably just a momentary issue. Try turning off the WiFi on your device, then re-enabling it. If that doesn’t work, do the same with your router by unplugging it and then plugging it back in 30 seconds later.
If that doesn’t help, or if the problem re-occurs, consider deleting your current network from the list of saved networks on your device, then re-connect again.
If you’re running Windows 10, search for “wifi troubleshooting,” and open the result, “Identify and repair network issues.” That will go through a series of diagnostics that may restore connectivity. On MacOS, you can run Wireless Diagnostics. Hold the Options key and click the AirPort (WiFi) icon on the menu bar. Find “Open Wireless Diagnostics,” and then follow the on-screen instructions.
If none of that works, consider rebooting the device.