Circuit board loose pin - fixable?

Here is the easiest and least expensive with just a trip to a fastener place or a hobby shop where they sell RC car parts. Remove the broken pin and replace it with a button head machine thread screw.

Get a allen button head screw the same diameter plus length and put it through from the back of the board. Install a shallow nut on the opposite side and tighten. Your fix is complete. I am always fixing the three pin boards on rally dashes which are notorious for breaking.