Try a new battery if you still have the problem it's the charging port on the phone an you will need a new1 soldered in
open