My iPhone won't make sound but it will when its a ringtone. How do I fix this?

It won't make any sound when i play music or sound through apps (iPod, Facebook, YouTube, Soundcloud etc) but it will whenever a ringtone is being played. This all of course is through the phone's main actual speakers.

If someone has had the same problem and knows how to fix this fast it would be dearly appreciated.

Thanks

Added (1). Forgot to mention whenever i turn up the volume from the side it says the headphone volume is being turned up even though no headphones are plugged in.

So plug some headphones in
and then take them out

see if that unblocks the socket that thinks there's still something plugged in to it

try it a few times

If that does not work,
then water damage / water near the socket has been known to do the same. Drying it out in a warm 'dry' place for some days may solve that problem.

  • Snapchat won't record sound, but my phone gets sound on videos? Okay, summoning all the tech detectives here. For months, my Snapchat records a very muffled (almost like its underwater) sound, but you can't reallt hear it. I can't explain it, but the sound is inaudible and muffled. The weird thing is, the problem is only and exclusively on Snapchat. If I record a phone video, the sound is clear as day. I have an iphone. Any thoughts?
  • My iphone won't sync to the computer its plug up but it won't work What to do? I plug it up and it charges like its hook up on the computer but when i go to itunes it won't sync
  • My iPhone says its up to date but its not? I have the iPhone 4s and every time I go into settings-general-software update, it says my software is up to date with iOS 6.1.3! All my friends have gotten iOS 7 already! Why doesn't mine say I need to update to iOS 7! And how can I make it say that? And I know that the iPhone 4s can get it.
  • My iphone isn't opening even once but I can still hear its sound? Help… Please help me. My iphone's screen isn't working( I keep on clicking the home screen and the top roght button thingy) but i can still hear the sounds and i don't know how to fix it, I've been searching how to find ways on the internet but i can't find anything if anyone happen to find a way to fix this problem please tell me As soon as possible