Go to Settings and tap general, check for any available update, and download it. You will need to connect to a strong Wifi network to do that, then install the update after downloading it. If the power button still doesn't work after updating your iOS, it's not a software problem. Visit the repair center.