Did you make any changes to the computer before the issue occurred?
How do you access your internet whether it’s hard-wired or wireless?
At the command prompt, run the following commands in the listed order, and then check to see if that fixes your problem:
Type netsh winsock reset and select Enter.
Type netsh int ip reset and select Enter.
Type ipconfig /release and select Enter.
Type ipconfig /renew and select Enter.
Type ipconfig /flushdns and select Enter.
Go to Network and Sharing Center > Change adapter settings. Right-click on the Disabled network device and go to Properties. On Ethernet, properties window select IPV 4 and press Configure. Select 'Yes' for the given message. Click 'Enable device'.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–