First, try it on the XBox One. If it works, then at least you know the controller is operational. It could be the USB port you're using on the PC...
If you're using a Linux distribution, then the default XPad driver doesn't respond well (or at all) to newer XBox controllers. There are drivers you can download for support. The same solution applies if you have an off-brand controller.
For Windows, it could be the off-brand controller issue mentioned previously. But Microsoft is pretty good about supporting off-brand controllers (If it runs on the XBox One, then it runs on Windows). I'm not very-well experienced with fixing Windows controller issues. The best course of action is to check a different controller and see if it works (even a 360 controller).