This is a very good question and most of the users are stuck within it if they don't know some technical knowledge. Don't worry I will suggest the best through the given points below.
1. Re-start your modem or router from where you use your internet connection.
2. Check out the network troubleshooter to rectify the network errors.
3. Re-starting your device is also the best option.
4. Re-connect the same network.
5. Update the Wi-Fi or internet drivers.
The above points will help you to restore your device's internet connection. If you have another query, please drop down below.