You need to replace your charging port. Its a fairly simple DIY fix
First, verify the exact model (if you can still run it, youll find that in ábout phone'in your system settings.
(Mine, for example, is an Moto G Stylus 20201, model XT2115DL
Then, google the phone model with the words ŕeplacement charging port. I got one from elitecellparts.com
Also, get yourself a cell phone repair kit from ifiixi.com.
Then watch this;
. https://www.youtube.com/watch?v=zsFOkDnQhkM
Goood luck!