You could try replacing the battery of your phone. Other methods like rebooting your phone, checking and fixing software updates, and using the correct USB port to charge your phone can help fix this issue.