What is the difference between an agent versus a broker?

What is the difference between an agent versus a broker?