When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
The best way to fix would be to disconnect the connector, pull the old pin out, crimp a new pin on the wire, slide it back in to the connector, and reconnect. You may be able to solder the wire to the old connector, although I cannot recommend trying that. If you could find the same connector online or at a junkyard or something you could cut it and solder it on to your wires.