Restore with iTunes on computer. If still problem after the Restore, go to Settings App > General > Accessibility > Assistive Touch > ON > Device > Lock Screen. This can be used to turn iPhone OFF. To turn iPhone ON, connect to power, charger or USB of computer.