Use AssistiveTouch When iPhone Buttons Stop Working
Tools You'll Need
Accessibility Settings
AssistiveTouch puts an on-screen button that can do the work of broken Home, volume or power buttons.
1. Settings, then Accessibility, then Touch, then AssistiveTouch, and turn it on. A grey round button appears.
2. Tap it to reach Home, Notification Center, Control Center, volume, Lock Screen, screenshots and restart.
3. Customize Top Level Menu to choose which actions appear.
4. Turn off the iPhone without the power button: Settings, then General, then Shut Down.
It's a good temporary fix. A broken button can usually be repaired, ask us for the price.