Two of the most common hardware issues with the iPhone are failures related to the Home button and Power button. This can present as either of these buttons becoming hard to press, not reading presses at all, or they can intermittently work. If you aren't up for a Home button or Power button DIY repair to fix the issue permanently, there is a way around them by using the Assistive Touch accessibility feature. This will give you a virtual Home button and Power button that can supplement the hardware. It isn't the most ideal solution but if you need a quick one, this is it.