When you plug the cable in, do you get a link light? If not, try plugging it into the uplink port (if you're already plugging it into the uplink port, try a different port). If there's no uplink port on the switch, go to the router and try uplink and non-uplink ports there. If the hub worked and the switch does not, this is the most likely solution.