Music randomly playing on iphone 5c?

Ok so I've had this phone for like a week and I put my phone on silent with earphones in it at school today and in the middle of class I hear music coming out my earphones even though I made sure all volume was off and I wasn't listening to any music that day anyway so I asked to go to the toilet and I turned it off then but can someone tell me why it's doing that?

Sometimes the phone is set so that when you shake is(or it shakes in your bag) the music starts playing. I have had this same problem in the past

Close the music app in the multitasking menu. Also turning off the phone can reset those functions.

  • Why does youtube randomly stop playing? I have an iPhone and I'll be in the app when the playlist (on loop) will randomly stop playing. It doesn't even show up as paused or loading it just completely stops playing without a reason
  • My music randomly deleted off my iPhone? So I downloaded a new song and went to my library to see if it downloaded and all my music was deleted. Is there something I can do or do I have to download them all manually? (I tried restarting my phone)
  • My IPhone keeps randomly playing music by itself? I dropped it about 30mins ago and while answering questions on here, it kept playing Marilyn Manson songs by itself at different speeds without me pressing any buttons and wouldn't stop when I pressed pause until I kept pressing it for ages. After that it has come on and off another three times but it plays music really sped up D: is it broken?
  • My iPhone keeps randomly playing music? - 1 I have an iPhone 5 and recently I updated it to the IOS7. Today while I was on Netflix, Siri suddenly appeared and then I exited and music started playing. This is happening every 5 to 20 minutes. I tried turning my Siri off but voice control appears! I'm not clicking anything and I've never had this problem before. I also tried turning my phone off and on but my music still randomly played. What's going on and what can I do?