Hi, welcome to iMore.
Make sure the mute switch is not "on". (Pull it up)
Open YouTube, play a random video and turn up the volume to max.
Go to Settings > Sounds & Haptics and disable Change with Buttons.
Now you should be able to hear sounds as before.
If you have any other questions, please
register here to our forum. We're happy to help.