IPhone 5 won't play sound through headphones?

My iphone won't play any sound through the headphones, but I can press the pause and play on the headphones and it works. So the phone is responding to the headphones but won't play through them. The speakers work, and there has been no damage to anything. So what can I do to fix this problem? I looked around on the settings and didn't see anything that might help, but I'm still hoping there's a solution. Any advice?

Contact apple