They are used to create emphasis and extra separation. The ones that link clauses are the simplest: take two (or more) independent clauses and place an em dash ...