Charge your iPhone with the Airplane mode on.
Reboot your iPhone.
Maybe your outlet, charger or cable doesn’t work, and that is causing the problem. Change it all, to see if there is a difference.
If you connected your device to your computer via USB cable in order to charge it, try to change the method, and use the charger. If you used the charger first, try with the USB cable.
Even if you just updated your device, maybe reset to factory settings will help. Go to Settings>General>Reset and click on Erase all Content and Settings. Your device will reboot, and maybe this will finally solve the problem.