AT&T iPhone 4 lock button broken?

My iPhones lock button is broken. I was repairing the screen and then something came out of the lock button and now it doesn't have a click feel or noise and it doesn't work. Does anybody know what part needs to be replaced?

I don't think you can replace the home button, but you can turn guided access on instead of the home button.