Have you tried a different charger? If that won't work, you may have to replace the charging port. Before you try replacing the port,try using the compressed air can for electronics and blow out the dust in the port with canned air. That worked for my 6S plus.
I'd try the local cell phone repair place! My local place has some amazing guys who can fix pretty much anything! Alternatively, you can try you tube for a fyi solution