Step-by-step explanation:
Try scraping-out dust and gunk around the volume control with a q-tip. You can also vacuum the iPhone volume button stuck or use compressed air to blow the dirt out. This is one of the most common reasons that the volume button stops working, so try cleaning your phone first.