Mortgage broker vs mortgage lender

So what’s the difference? This story will be for first-time homebuyers. Please explain to them when it would be beneficial to go to a lender and when it would be better to seek a broker. Requirements: Mortgage and real estate professionals. Note: If you are a real estate agent, you must be a ZILLOW PREMIER AGENT to participate