What is the term for one word that has two or more meanings?

Homonyms are words that have different meanings, but are spelled and pronounced the same. For example, the word fly can refer to the ability to travel through the air, or it can refer to a particular type of insect.