If your Wi-Fi is working but the wired ethernet connection is not, then you should disable the WiFi. When Windows 10 can access both the Wi-Fi and the ethernet connection, then it prioritizes the latter. So, if you turn off the wi-fi, you can find out if the ethernet connection is working or not.