How does the US election work?

How does the US election work?