Troubleshooting internet connection

I didn’t have internet but after restarting the system I have. Is there a way of trouble shooting this to avoid having to restart next time?

The symbol appeared indicating that I was connected to a wired network but I had no internet. I tried restarting the network manager with sudo systemctl restart NetworkManager but it still didn’t work. What else could I have tried?

Then post ip a on console.