@Englishmedam She insisted on paying the bill.
The verb insist is followed by the preposition "on", and when a verb follows a preposition, it takes the gerund form (verb + -ing).
@MasterEngEasy If she had more free time, she would learn a new language.
This sentence is an example of the Second Conditional.
We use the second conditional to talk about imaginary, hypothetical, or unlikely situations in the present or future.
@LearnsEnglishh We look forward to working with you.
The "to" here is not the normal infinitive to, it is part of the phrase "look forward to", so what comes after it has to be a gerund, the -ing form.