I hope I've got you right...
I think you already know that some verbs in English can ONLY be followed by a gerund (verb+ing) - examples 1 to 4 -, and some others followed only by to+infinitive. Most dictionaries will tell you about this by some notes put in italics and within brackets. However, please take care not to generalise the rule you've come up with. Only verbs such as "continue, stop, like, etc." can be used that way. I'll give you some examples:
1. The teacher continued talking about their exam. (here, the teacher didn't change the subject; just probably made a pause, and then continued talking...)
2. The teacher continued to talk about their exam. (in this case, the teacher started to talk about a new subject)
1. I like teaching! (I have the experience, and I am a teacher now.)
2. I like to teach some day. (I haven't taught yet, and I have the desire to experience it in the future.)
Please google-search for the verbs which have different meanings in their infinitive and gerund modes.
Hope it helps.
Student or Learner