are you able to hear music/ sound when watching videos? if you aren’t able to then there could be a problem with your speaker and that will have to be replaced. if it does work then there could be something going on in your settings if you go to settings then sound you can find the setting there. If that still doesn’t fix the issue I would backup your phone then do a factory reset.