Sound Problems With my IPhone 4S?

My phone won't ring when I'm receiving calls, it won't sound off or vibrate when I get a text either.but, my keyboard clicks work, my unlock sound works, my music works, and my alarm goes off perfectly fine without being plugged into anything. Any ideas on why it's doing this? Or how to fix it?

Did you tried the side switch where your volume buttons are or if you can try restoring it go to settings and mess around with it where it says sounds and stuff like that you might get lucky and the sounds might just works instantly