Open up the following tabs 


> System Preferences

> Security & Privacy

> Privacy

> Screen Recording


Enable Teams or Zoom for Screen Sharing