Gerund is -ing form. Infinitve - to ...
For example... I remembered posting the letter. (he meaning is that you remember doing that.
I remembered to post the letter. (You remembered that you had to post the letter, so you did it.)
- For Teachers