If it's really connecting to--and communicating with--the router via ethernet and Wi-Fi but does not have internet access although other devices do have internet access through the router then probably
a. firewall issue, or
b. the router is set to deny internet access to that computer.
a. firewall issue, or
b. the router is set to deny internet access to that computer.