How can I distinguish between words which have the *-ing* in a sentence that are nouns, verbs, or adjectives?  
For example sometimes *-ing* come with word to give us a noun, and sometimes a verb or an adjective.  
Is there any rule to determine whether a word with *-ing* is a noun, verb, or adjective?