You can get it fixed at an apple store if it is still under warranty or AppleCare. You could do it yourself, but I'm not an expert on that replacement.
It may not even be completely broken though. You may be able to replace one of the connections or try to dry them out some individually.