Samsung Galaxy Grand Prime SM-G530AZ (Bianco 8GB 2GB) solo quattro parti/funzionante

Phone is acting up. I believe it’s the battery but I am not 100% sure that the issue is with the battery but if I plug it in it works fine when it’s unplugged it turns off but battery states percentage as it went off and comes back on Batteries the same as is for parts only it’s 8 GB. More details please see pictures. Back case top left corner is broken. Samsung SM – G530 AZ 

eBay