Ok, did you Force restart iPhone?
https://support.apple.com/en-ca/guide/iphone/iph8903c3ee6/ios
This isn’t the same as turning it off or using the power off slider , you must wait until the Apple logo appears, then you can release the button(s)
while this music with no sound plays, use the control Center volume slider to turn it up to see if that helps. With sound issues it can help to adjust volume while you’re using the affected app.
You should also make sure your iOS software is up to date as well.
As a last resort, If the above steps still don't help you can delete the music app and reinstall it from the App Store.
If you can't download, play, or access songs
https://support.apple.com/en-us/HT204406#ineligible
First, check iTunes to see if the song is ineligible for upload., if you added the song to your library from the Apple Music catalog, it might no longer be available on Apple Music.