Chosen Solution

i replaced the screen. iPhone is working fine but phone doesn’t charge even after keeping it connected to the charger. It is loosing the charge instead. I checked charging port flex and changed the battery too. None of the troubleshooting worked.

try to change the charging port,if doesn’t work maybe during your screen replacement you accidentally damaged you motherboard and cause short circuit,try to find the charging circuit and check the circuit