I found this on the Apple Forum: I have never used the side switch for mute. I find it a stupid option, as the volume button can be used to mute sound. Nevertheless, changing it to "mute" in Settings, turning it off, then returning it to "lock" restored my game sounds.
Since all other sounds were working, this should have had no effect, but it brought back the sounds in spite of this inconsistency.