This is just the external part and does not include the cable.
There is a button that is attached to the Audio Control Cable that controls the power and lock function. If you are experiencing issues with your button not working it may actually be the Audio Control cable that's bad.