First you want to make sure that your charger and Data cable are good. Test them on another phone to make sure it is working or you can use a multimeter to test the pins to make sure it is working. If it is working properly, then check the port itself on the phone. Using a strong Iso alcohol (90% - 99%) clean out the charging port, even a toothpick or very fine tweezers. Inspect the port for visual signs of damage.
You could also try wireless charging if you don't feel comfortable removing the back of the phone and replacing the battery or charging port if needed until you can get it to a repair shop or order what you need to do a DIY replacement.
After trying these just repost a follow up on what you tried and the results, then we can try to help you from there :)