A microphone provides a way to have audio input into your computer. Most laptops have an integrated build in microphone. However, microphones can also be external peripheral devices.
Microphones can have an analog connection via TRS (Tip/Ring/Sleeve) jacks. Microphones can also have digital connectivity via a USB connection.