you might usually tell it’s not working when the Xbox button doesn’t light up.
When a controller is functioning normally, pressing the Xbox button causes it to flash and then stay on.
However, there are several things you might try first to address the issue.

Remove the battery compartment on the back of the controller.
Remove each battery and verify it’s inserted in the correct direction.
If it was installed incorrectly, put it back in the correct direction.
If both batteries are installed correctly, install a pair of new batteries.
Don’t take batteries out of a different rig.
Check the battery contacts.
Remove the battery cover and the batteries, and examine the contacts on the right side of the compartment.
The contacts should extend at an angle.
Don’t attempt to pry the contacts with the batteries installed.
Don’t apply excessive force.
Troubleshoot the Xbox One Play & Charge Kit.
The cable could be worn out or broken.
confirm it’s securely plugged in on both ends.
Update the Xbox One controller firmware.
Xbox One controllers rely onfirmwareto work correctly.
Connect the controller via USB.
When all else fails, connect the Xbox One controller to the console directly using aUSBcable.
If this fix doesn’t work, the controller may have an internal fault and require professional repairs.
Contact Microsoft Xbox Support.
If none of the above fixes work, it may be time to seek customer support.
If your controller is under warranty, it’s possible for you to probably get a replacement.
Some of these can be fixed at home, and others can’t.
If your Xbox controller is plagued by sticky buttons, unplug the controller to clean it.
Use a cotton swab dipped in isopropyl alcohol to gently clean the area where the button seems sticky.
Carefully and thoroughly get to all the nooks and crannies you might reach to remove debris.
Sign in to your account.
PressXbox Oneand navigate toSystem>tweaks>Kinect & Devices>Devices & accessories.
SelectMore(three dots ) >Firmware version>Update Now.