Some verbs are typically followed by infinitives, others by gerunds, and some can be followed by either (with or without a change in meaning).