Only when the word functions as a noun (subject) is it a gerund.
Previous Question
In "She enjoys reading books," the gerund 'reading' acts as the:
Next Question
What is the function of the gerund phrase in "My hobby is collecting stamps"?