This election is almost for certain going to be different, in that it is very likely that neither party will be nominating a current or former governor.
However, there are many occasions when a congressman or senator has been elected POTUS.
One very interesting bit of info for you to ponder, NO MAYOR OF NYC HAS EVER BEEN ELECTED TO ANYTHING HIGHER THAN THAT POSITION.
"NO (MAYOR OF NYC) HAS EVER BEEN ELECTED TO ANYTHING HIGHER THAN (THAT POSITION)."