You will have to check your settings. It may be set up to turn off the sounds when on the charger.
Plug it in and then check the settings. Also check the volume to make sure it is turned up. Once you have reset it, while it is plugged in, then it should work.