Answer:
The words are called "homographs," a type of homonym.
Examples are the words bear (animal, or to carry) and left (direction, or remaining amount).
The larger set of words that are referred to as homonyms are words that are spelled differently but sound the same: these are called homophones.