It is far too often the case that failed hardware components lead to unnecessary disposal. That means another expensive purchase for you and more stuff sitting in landfills for the Earth. Thankfully, ...
First, test your controller on your PC or another Xbox console (if available). You can also use your friend’s Xbox console. This step will let you know whether your controller is working fine or not.