first check charger, battery, second check phone charge flex and last if this is not solve the problem the issue is in logic board
open