My iPhone 5 won't turn on, and is going nuts
I was taking a picture on my iPhone 5 when all of a sudden it shut itself down. It was at 50%, so I knew that it had nothing to do with being out of charge. I tried rebooting it by pressing the top right button, and the logo appeared. Then all of a sudden, it faded away, and the screen turned blank. Then, the apple logo reappeared, and faded away. It's been doing this over and over again. Putting it on the charger made no difference at all.
Please, help!
iPhone 5, iOS 6.1.5