Use Assistive Touch. Settings App>General>Accessibiltiy>AssistiveTouch>ON>Tap new virtual screen button>Device>Lock Screen Icon>Tap will lock screen. Hold down on this and "slide to power off" will appear. To turn iPhone ON connect to Power Source ie Charger or USB port of computer.
When you can use your AppleCare Coverage this problem will be covered by Apple.