if no presidential candidate gets 270, then the newly-elected members of the House of Representatives step in to determine the winner, according to the 12th amendment. Each state delegate casts 1 vote for the State (yes, California 1 vote, and Alaska 1 vote).
The Senate decides the vice president.