Why does my iPhone turn the sound on and off itself?

It started about an hour ago and it doesn't stop? As soon as it turn it off it turns it on again. And if I try to turn it on or off myself it doesn't work. I've tried restarting it and having it off for a while but it's not working. I just got home from the beach so maybe I got some sand stuck in the volume button thing?

Probably a faulty iPhone. I would go to the Apple Store and see what they can do.

  • Why does my iphone 4s keep turning itself off and on? My Iphone 4s(Jaill broken) wasn't showing the home screen wall paper so i thought it was one of the Cydia tweaks so i started deleting some of them made my iphone stuck, so i desided to turn it off and when i did it keeps turning it self on and off on and off… And i won't connect with my Computer and i'm not in America atm so there's no Apple store around can some one please help me?
  • Why does my iPhone 4 keep turning off and on by itself when its plugged in? I have an iPhone 4 and whenever I unplug it, it turns off. I can't get any source of signal, the Wi-Fi switch is greyed out, the date changed to December 31 and the time is an hour behind. The battery before I plugged it in was 20% its been 5 minutes and its up to 100%. Pretty weird.
  • Why did my iphone 5 turn off and not turn on after a ios 6 update? I have tried everything it won't show its charging i tried holding down the power and home button but that won't work, the screen is just black and won't do anything. I even tried plugging it into my laptop and that won't work either How do i put it in DFU? I hook it up to my comp and nothing happens at all. Nothing pops up on my comp and my phone won't turn on at all
  • Sound better if i turn iphone sound at 50% and turn radio up? - 1 My girlfriend is convinced that it sounds alot better if i turn my iphone volume to 50% and turn the car's stereo up it sounds better as opposed to keeping the iphone volume at 100% and turning the car's stereo down… True or?