Is the switch plugged into the same ethernet port on the router that you tried to plug the pc directly into?
If so then that is a really weird issue. There is no reason why a router would not allow a single PC to have a lan connection, but allow a switch to give multiple computers a connection.
FYI, the router ports is its own buit in internal switch.