Sometime due session layer like basic protocols winsock and ip get corrupted that cause internet not to work, it seem like data is coming and going but not corrects packets, to solve this i used this methods
run this commands as admin
netsh winsock reset
and
netsh int ip reset c:\resetlog.txt
that worked for me atleast
you can also try uninstalling those protocls from nic, and installing again, which is 'Internet Protocol version 4' in networking tab