Raft has three states: follower, candidate, leader. Followers timeout if they don't hear from the leader (randomized 150–300ms). On timeout, they become candidates and request votes. First to majority becomes leader.
Random timeouts spread out elections so split votes are rare. The new leader sends heartbeats to establish authority. Term numbers increase monotonically across elections.