How to turn on an iPhone with a broken power button?

Plug in your phone to charge it.

It will turn on.

Go to Settings -> General -> Shutdown to turn it off.