Same thing was happening to me when I first got my controller. I went on youtube and theres some good videos on it. My issue was my windows 10 wasn't up to date. Once I went in and updated it, the controller worked perfectly. Check this video out.
https://www.youtube.com/watch?v=DmwIYizCAic