Try using a wireless charger to see what’s up. If it charges just fine, try using the cable. If it doesn’t take a charge on the cable, it’s most likely the charge port, which is a common failure on devices with MicroUSB. The bad news is if it is the charge port that’s bad, you’ll need to replace the screen as well because the two buttons on the side of the home button are part of the port assembly and go under the screen. Unless you can find someone who’s good at microsoldering they can replace it.