* Noun: When referring to the unit of measurement for distance (e.g., "We drove 100 miles").
* Adjective: When used to describe something as being "many miles" (e.g., "They traveled miles and miles away").
* Plural Noun: When referring to multiple units of distance (e.g., "The race was 26.2 miles").
Let me know the sentence you're thinking of, and I can tell you which part of speech it is in that context!