The gerund and the infinitive have parallel uses in English and Spanish,
but there are also important differences between the two languages(English and Spanish).
Both forms are invariable, that is, they do not change regardless of their position in a sentence.
In English, the gerund is identical in form to the present participle(ending in -ing) and can behave as a verb within a clause(so that it may be modified by an adverb or have an object),
Examples:
Reading helps you learn English. subject of sentence
Her favorite hobby is reading. complement of sentence
I enjoy reading. object of sentence
Infinitives are the "to" form of the verb. The
infinitive form of "learn" is "to learn." You
can also use an infinitive as the subject, the
complement, or the object of a sentence.
Examples:
To learn is important. subject of sentence
The most important thing is to learn. complement of sentence
He wants to learn. object of sentence