Cant connect xbox controller to pc

anytime i try to connect my Xbox controller it wont pair. Now i am only using a wired controller so I'm not quite sure what the issue is. When i plug the controller in it just keeps flashing as if its not connected. Its not dud USB ports as i have tried on ports i know for a fact work.

one thing i forgot to mention is that it was working previously but recently it stopped

If i am not wrong the xbox (360) controller needs a receiver. I am not sure what xbox controller you have ?

Bluetooth enabled ?