Most PC laptops have poor quality mic inputs. For reasonable quality audio recording it is usually necessary to upgrade the audio interface. The most popular way of doing that for a laptop is to purchase a USB audio interface. There is a huge range of USB audio interfaces available. Many (but not all) support plugging in a microphone, but usually this is via a 3 pin XLR connector:

Some USB interfaces support mini-jack or 1/4" jack microphones, but usually these are low quality. XLR is the way to go for good microphone recording.
There are other approaches, such as buying a USB microphone (plugs directly into a USB port), or using a “line level” USB interface with a mixing desk and plugging the mic into the mixing desk. There are pros and cons to each approach. The main considerations tend to be “budget” and “what exactly you want to do”.
There is a very detailed topic about an Audacity user tackling this subject here: https://forum.audacityteam.org/t/non-usb-mic-for-classical-guitar-rec-findings-conclusions/13464/1