Opening up System Preferences ➙ Sound ➙ Output will show you which output is selected, whether that’s your internal speakers or a third-party device. The first port of call if you find your Mac volume locked or non-functioning should always be the Sound Menu of the System Preferences area.
Try free ✕ Determine The Causes Of Mac Sound Not Working