Welcome to iPhone Forums!
Do you mean the Mute button next to the Volume buttons doesn’t work? Did you try anything to fix this?
If the Mute button stopped working, you’ll have to take your iPhone to the next Apple Retail Store, that needs to be repaired.