The Lieutenant Governor takes over if the Governor leaves office. In many states they also lead the state senate and can break tie votes there, and the Governor often gives them other duties. In some states the Governor and Lieutenant Governor run together as a team, so one vote elects both.
In the general election, the candidates who advanced face off and the winner takes office.