Charging problem after replacing battery

Old battery got swollen up so I changed it with a new one. After few months the phone stopped charging completely. Is it the battery or the charging port is not working? How do I find out?

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

crwdns2934109:0crwdne2934109:0

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