Bought a Ramps 1.4 board off ebay and when I tried to insert the board into mega, the pin shown in attachment was popped off, and with it, the copper contact it seemed, is there any fix for this problem? I'm new to the Arduino world and electronics in general, also I noticed the solder I used doesn't seem to be sticking to the pin, help?
Solder the pin back in place, and do a better job so it makes good contact.
If your solder is not sticking, are you using flux?
You need flux in order to make solder stick to surfaces that don't have solder on them already, or to clean up filthy solder. Most solder available is "rosin core" solder - the rosin acts as flux here (that's the smoke when you touch the solder to the iron). But the rosin gets quickly used up, so when remelting old solder, you won't get it to stick to anything. Either add some flux, or add some fresh solder (with flux inside) to get that sorted.
Solder works best with clean metal - wipe the pin on some sandpaper to get a raw metal surface Then apply some flux to help the solder stick.
It seems you have two problems:
Mechanically holding the pin in a hole which no longer has a copper pad
Electrically connecting the pin to where it needs to go.
Problem #2 is easiest to solve. Either scrape back the soldermask over the trace leading from the pin or run a wire across the board to the final destination. Problem #1 depends on a few factors - will you ever be unplugging the Mega again?