Why isn't my Iphone home button working?

I have an Iphone 5s. The problem with the home button is that it works but doesn't work when I'm trying to unlock the phone. If I get into my phone and I use the home button, it is perfectly fine but when I'm on the lock screen, the home button doesn't work at all.
I have the latest (i think) IOS update where you have to press the home button to get to the passcode instead of sliding the home screen like before. Right now I have to slide a notification to get to the password and it is a huge inconvenience.
Please reply As soon as possible.

It's not working simply because they can and do fail.

Replacement of the button can only be done by Apple if you want the fingerprint sensor to work, because for security the button has to be paired to the motherboard.

You can duplicate the effect of a non-fingerprint home button such as on earlier iPhones by going to Settings>General>Accessibility>Assistive… And then toggle the switch to ON. A virtual home button will then appear on screen which you can drag wherever is best for you on the screen. Without a fingerprint sensor you'll still need to enter the phone PIN code.

  • Why parallax effect of home screen background isn't working on ios7? I just installed ios7, and i've seen some demo videos of ios7 on youtube.there's 3d effect of background in ios7 while tilting device but that function isn't working properly on my iphone 4s. It just shows small movement instead of large deflection as those video demos.
  • Why isn't my iPhone 5s working on home Wi-Fi? So, it was working a minute ago and now it's not, it's up too date, and was working fine. I had the phone switched out from the gold to black with a guy on craigslist, but I don't think a Wi-Fi can just break. What's wrong? It's on iOS 7. And I switched too charter from AT&T. And when I link it it just has the loading bar and never links, when it does link the internet is so slow that it doesn't even work and it has all bars, what's wrong?
  • Why is the home button on my IPhone 6 not working? I can turn the phone on, but every time I click the home button, it will not go into phone for some reason. I have turned it on and off a few times, but that hasn't done anything. What's wrong with phone? Explain
  • My iphone home button isn't working? I have this iPhone 4s. The home button doesn't work. It's stuck on voice control. Where you double tap an app and it tells you what app you're on and you double tap just to get into it. Its annoying. Is there any trick into getting it to turn on? The home button doesn't work at all