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

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 2
crwdns2934285:0crwdne2934285:0