Why is my iPhone 3gs randomly shutting off?
Okay so i got a gamestop refurbished iPhone 3gs and yesterday everything was working out great and the phone was working fine. Today on the other hand, i encountered my phone randomly shutting off by itself. Once it did it when i opened the camera app and the others were from txt messages or using the internet. The battery was around 50% or so too so it was far from a dead battery. Once the phone shuts off, sometimes i can reboot the phone and other times i need to plug it in to reboot. Is there anything i can do to fix this? It's getting really annoying as you can imagine.
Additional Info: it's running ios 4.3.5
Help!
iPhone 3GS