You need an Ethernet (RJ45) cable—you cannot plug the console directly into the router without one.
Wired is more stable and lower latency than Wi-Fi for gaming.