I brought motoe4 e4plus recently it's sound button is not working
Mobile side volume bottoms are not working
Try using this app for temporary use.
Take it back, warranty should be able to cover the repair for your volume button.