It has done this before. I wanted to listen to music (on pandora) and I noticed the volume bar underneath wasn't there. I then opened my control center and the volume bar wasn't there and when I clicked the buttons on the side wouldn't work either. I got it working again the earlier time it happened but now I don't know how to fix it.
Read more: My iPhone 4 (iOS 7) volume isn't working?