Hyphens, En-Dashes, and Em-Dashes

There are a number of horizontal marks on a keyboard and inside of a font. What are the correct one for which settings?

Hyphens, En-Dashes, and Em-Dashes