How to turn off iPhone without power button?
If you go to Settings>General>Accessibility>AssistiveTouch and flip the switch to "on," you will find a black square with a white dot in the middle.

When you tap the white circle for AssistiveTouch, tap "Device," then LONG PRESS on the "Lock Screen" option.  You should be set!