Phone makes a click noise and shuts off.
Ok, so I got my screen replaced awhile ago, but the battery apparently was damaged. Just recently got to the point where it wouldnt charge. I put in a older battery from my moms or my phone (I dont know which one, both are the iphone 5) and it was working, but sometimes if i unplug it, i hear a soft click sound and shuts off. I can restart it using home+power button. Charging doesnt turn it on sometimes. Whats wrong?