Check the female/male ports.
I previously have a connection problems with my Classic and Nunchuk controllers, I clean the ports with a semi-hard piece of paper with a bit of isopropyl alcohol and a lot of care, later the Classic controller began to work properly. For the Nunchuk, I notice that...