Why doesn't my iPhone sound work?

Ok so I dropped my phone in water yesterday then put it in rice. I took it out today and it worked fine… Until I wanted to listen to music. It works with headphones but not outloud. It doesn't make any sound except my ringer. Everything in settings is right… So why doesn't the sound work

There's this little button on the side. Try taking off the cover first. There's this button that you can flip. It is on the left side of the phone. When you turn it on, there will be a little trumpet thing. Try listening to music again.