Are the joycons authentic? If not they probably broke, if they are, it’s probably the rail or battery,
open