fuel sending unit and fuel gauge trouble

Ok I got the IC out, looks like someone has been in here before...some of the pins are soldered and loose and broke...what's the best way to go about fixing these? What tests should I do after I get these pins fixed.

20170305_095944.jpg

20170305_095835.jpg

20170305_095815.jpg

20170305_095806.jpg

20170305_095756.jpg

1488737252002-383132905.jpg

1488737292540-127358293.jpg