You can purchase this electrical connector at your local auto parts store. To replace the damaged electrical connector simply take a pair of wire stripper/crimpers and cut one wire going to the electrical connector you are replacing. Strip about 1/2" from the exact wire on the new electrical connector and do the same to the vehicle wiring harness of the wire you just snipped. Splice the two wires together with a good quality butt connector and repeat the same process for the remaining wires. In the diagrams down below I have included the pinout for the brake lamp electrical connector for your reference. I hope that this helps.
Images (Click to enlarge)
Thursday, December 19th, 2019 AT 6:04 PM