Also as a gerund e.g. I like doing. It's a fairly big topic though grammar books may not classify the issue in this way. Look up grammar books and study continuous tenses and the gerund. There may be other uses I have not thought of and a professional teacher will be able to help more.