when to use -ing and when to use to + infinitive after a verb

when to use -ing and when to use to + infinitive after a verb