(If you would like to see how it’s done, here is a video on how to do it : [link|https://youtu.be/V6QC4pWJpc4|https://youtu.be/V6QC4pWJpc4] )
You will need a soldering iron and a glue gun.
First, you can try to solder back the connector in place using your soldering iron. Only the 2 pins next to each other are important. The other pins and just to hold the connector in place (which can be done with hot glue once your are sure everything is working).
If you can’t do it, you will need to solder tiny wires to the 2 pins next to each other. Make sure that those 2 pins are not short toghether (Solder and wire should NOT bridge the pins toghether [no contact between them]).
Then you can solder those wire to the biggest components you can find on the normal path of the corresponding pins. If you can’t find some that you are able to solder to, then you can gently scratch the top green layer of the motherboard on the normal path of the corresponding pins and solder your wire to the cooper layer underneath.
Once it’s all done, you can glue back the connector to the motherboard to make it is not moving anymore. Use a little as possible and make sure it doesn’t block holes in the motherboard and that it doesn’t block the battery holder from being put back in place. Hot glue can go over components on the motherboard as it is not conductive.