Heteronym

word that is written identically but has a different pronunciation and meaning

A heteronym is a word, or rather several words, with different meanings. However, the words are spelt the same way. Usually they are pronounced differently.