What do you call a pair of words that are spelled the same but have different meanings?

Those would be called homographs.