you may have to define "not working" a little more
You didnt specify what kind of test you did on the cable, i.e. You may have continuity on the cable pairs but they may not be wired to standard etc.
If its a managed managed switch, are the switchports administratively enabled/disabled? Is PoE...