IPhone buttons unresponsive?

It started with my bottom volume button, now it's my lock button. I just got my iphone 5 about 2 months ago and now the buttons are unresponsive. They work sometimes, but stop working soon after. Can I get a replacement from apple because of this? I mean all the buttons being unresponsive is an indication that it's the software right?

Plug in your iPhone, connect to iTunes and sync it. And then update to the lates OS

  • My iphone 3gs home and lock buttons won't work I know about the accesive touch thing and i use that to lock and go to the home screen but when i my phone is locked the only way i can get the screen to light up is taking out the sim card and putting it back in. Is there any other ways?
  • Iphone volume buttons not working? The speakers work fine, it isn't on silent, but when i try to adjust the volume it doesn't work? The keyboard clicks don't sound anymore and neither does the lock sound? I have no idea why. I already tried turning it off and on again. And it only works if i have headphones in. Or else the music and stuff won't sound.
  • IPhone buttons don't work at all My iPhone had all of a sudden broke! My home button, power button, volume up and down are all not working. When I can get into my phone it's all fine! Just the buttons don't work. I have updated software and done re set. Any other suggestions?
  • IPhone 5 Help! Keeps pressing buttons? I have an iPhone 5 and last night, by itself, it just started to press buttons. It would open up my calendar, then it would open up the app store. If it was locked it would go into emergency dialing and press random numbers… If I were to describe it, it's like my iPhone is possessed. I've tried turning off and on as well as restoring. Nothing has worked so far.