Here is a worksheet on the verb remember when used with an infinitive or a gerund.
I remembered to buy coffee at the supermarket.
I remember buying coffee at the supermarket.
If you find typos in this document, I would appreciate a notification. And, as always, if you find this material useful in your practice, I would be grateful to hear what you think of it. I seek your peer review.