It's possible to record the audio and video on a Mac in several different ways. However, to capture the videos with either internal or external sound on a Mac, you'll need some help from a more powerful screen capturer like AppGeeker Screen Recorder.The built-in Screenshot Toolbar and QuickTime Player on macOS both allow you to record the video on your Mac screen as well as the audio coming from your microphone.
To record audio and video on a Mac, enable the native screen recorder on your macOS.
What to know if you'd like to record video screen with audio on Mac: