I've replaced a lot of similar pins on lots of things. As said, clean the contacts and resolder. The pin connections are very weak mechanically. A lot of the time when removing the connector the pins take part of the board trace with them. Relace the pin and try to swage (make the pin fatter at the bottom) before you solder it, to give it more mechanical stability. If the trace has been torn away you need to wrap a small gauge wire (24-28) around the end of the pin and solder it to the trace, (don't trust solder only to fill this gab it will become intermittent with vibration). For added stability after soldering add a small amount of epoxy on both sides of the pin to keep the pin from pulling out again.

Jim