a) Scientists have begun to research new ways of communication. - infinitive
Scientists have begun researching new ways of communication. - gerund
b) The teacher stopped to write on the board. - infinitive
The teacher stopped writing on the board. - gerund