Only charge when phone turned off need tech support to this

Infinix x521 is a mediatek cpu Android the phone only charge when turned off when on just display battery no sign of charging I need repair guide to this like ic to replaced or how I should go about this thank you

crwdns2893858:0crwdne2893858:0 crwdns2893862:0crwdne2893862:0

crwdns2894050:0crwdne2894050:0

crwdns2889612:0crwdne2889612:0 0
crwdns2892346:0crwdne2892346:0