Try, stop, remember and go on differ in meaning when used with an infinitive or a gerund
He tried ringing the bell, but there was no answer
He tried to reach the next branch, but it was too high
1. (you try it in order to see what happens)
2. (you attempt it, but do not necessarily achieve it).
He stopped smoking.
He stopped to smoke.
He remembered calling her.
He remembered to call her.