MacBook Pro: No feedback sound on changing volume and on mouse clicks

Go to System Preferences → Sound → Sound Effects and make sure Play user interface sound effects and Play feedback when volume is changed are checked.

enter image description here

The sound clip played back when increasing/decreasing volume has been changed starting with OS X Yosemite and, thus, you will find it different from earlier versions of macOS.