First of all, you need to make sure that your privacy settings are set so that Sea of Thieves can access your microphone.
From the Windows Start menu, go to your settings and look for Privacy.
In the sidebar, click Microphone and turn on the option that allows apps to use my microphone.
You can now activate microphone access for Sea of Thieves.