socket charger of board is broken

i have motorola moto g2 xt1068

my phone have 2 problem

1 my socket charger of board is broken that connect to pc and charger but not charging 

2. my phone is starting up and after 1 minutes shutting down automatic 

now i have one question that if i change my socket charger of board my shutting down problem is fix?

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

crwdns2934109:0crwdne2934109:0

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