This problem can be handled with Warranty. Make Genius reservation or set up service and take or send to Apple for resolution. You can also use Virtual Lock Button, Settings App > General > Accessibility > Assistive Touch > ON > tap new screen button > Device > Lock Screen. This can also be used to turn OFF iPhone. To turn iPhone ON you can connect to power, charger or USB port of computer.