* Noun: When it refers to a large quantity, like "There were thousands of people at the concert."
* Adjective: When it modifies another noun, like "They spent thousands of dollars on the project."
* Determiner: When it precedes a plural noun, like "Thousands of stars twinkled in the night sky."
It's important to look at the context of the sentence to determine which part of speech it is.