What’s the Difference Between a Caucus and a Primary?

|Updated:

In the U.S. electoral system, states decide on how they nominate candidates. Why do some states have caucuses while others have primaries?