Wire broke off and stuck in a header
Generously tin a piece of wire
Insert the wire into the socket with the stuck pin
Reflow the solder to join the pin to the wire
Use the wire to extract the pin.


Be careful not to solder the pin into the socket!