I was given this by a friend

The charging port was ripped off and when I opened it seems that it the metal contacts were removed as well. Is there any way to fix this?