How to fix broken controllers/pads?
The PS2 controller is fairly simple to take apart. Sounds like the contacts are probably dirty and just not making contact properly for the buttons.
Link+Video: http://screwattack.com/videos/How-to-take-apart-and-clean-your-PS2-controller
Not sure about the gamecube controller.