What kind of phrase can function only as a noun?

gerund
participial
infinitive
all of the above

gerund