Hi,
Here is a link to a video which shows how to replace the battery in your device. I realize that this is not your problem but the video is useful as it shows how to open your device so as to gain access to the systemboard.
You only have to watch the first 2:15 minutes of the video as the systemboard is accessible by then.
https://www.youtube.com/watch?v=fDqzJWHE...
The charging port is mounted on the systemboard and most likely has become dislodged causing your problem.
You will need surface mount soldering skills and tools if you wish to repair the connection or to replace the charging port. if you have to do this instead
If this seems too daunting then I suggest that you take it to a reputable, professional computer or mobile phone repair service, who give a guarantee on their work (even if it is only for 30 days), and ask for a quote to do the work.