In MS Teams you have an ability to choose what speaker and microphone MS Teams will use.
You can find this the MS Teams app by going to settings and then audio devices - this will enable you select between all available speakers and microphones. Typically, this will give a choice between the laptop built in speakers and microphone and the speakers and microphone for any attached devices.
There are similar settings in Zoom - one advantage that Zoom has is a feature that allows you test your microphone and speaker settings without making a call/joining a meeting. In my experience once the speaker/microphone set up has been successfully tested in Zoom, then selecting that speaker/microphone combination in MS Teams will work