Try the following steps:
Make sure your controller is turned on, fully charged, and connected to the PC.
Replace the controller’s batteries.
If you're using a Bluetooth controller, go to Settings > Devices > Bluetooth & other devices on your PC and make sure it's paired (you should see it listed on the page).
Learn more about Xbox controllers