Apple's given iOS 11 users a new way to shut down their device. In the case that your iPhone's lock/wake button stops working correctly, you can open Settings, tap General, tap Shut Down and swipe the shutdown slider at the top of the screen. If this doesn't do the trick, and holding the lock button doesn't wake the phone, plug your iPhone into a power source and it will start up.