You can use the built in microphone or an external microphone with a 3.5 mm TRS connector and use QuickTime Player > File > New Audio Recording for simple recording needs or Audacity for more advanced recording needs or you can even use GarageBand (free with every Mac, thus it should either be still installed on your Mac or be available via the second grey Restore DVD, that came with your Mac).