An em dash divides phrases—and clauses—in a sentence. Enter option-shift-hyphen on the Mac; enter alt-0151 in Windows.
An en dash denotes a range, e.g., the class meets 9:00–10:30, Monday–Thursday. Enter option-hyphen on the Mac; enter alt-0150 in Windows.