Do you have an iPhone, iPad, or iPod with broken buttons? Do you want an alternate way of accessing features without using the buttons? Go to Settings, General, Accessibility, AssistiveTouch, and Set to On [more]
“AssistiveTouch allows you to use your iPhone if you have difficulty touching the screen or if you require an adaptive accessory.”
Turning on AssistiveTouch gives you a circle “button” on your screen that you can use to complete functions that real buttons would perform. You can move the circle around on your screen if you need to access that part of the screen for some other items.
You can use AssistiveTouch to lock the screen (circle “button”, Device icon, and Lock screen icon), set mute, change volume, and other items. If it is your lock screen button that does not work, you can use AssistiveTouch to take a screen capture pic. Start by pressing the circle “button”, then Device icon, then press and hold normal Home button, and finally press the Lock Screen icon on AssistiveTouch. Also, you can use AssistiveTouch to do a power off by pressing the circle “button”, Device icon, and press and hold the Lock Screen icon until the “slide to power off” message appears.