Procurement vs Sourcing vs Vendor Management

What’s the difference between these 3 teams/personnel? Would a company have all 3? Trying to understand key differences in these roles.