Hello Raul,
I'm not sure if you are asking what is the difference between "to+verb" and "verb+ing" in gereral. I believe you are asking specifically the difference regarding the phrase "I'm afraid...", so with this regard there isn't actually a difference, they both have the same semantics.
Merry Christmas and happy new year!
Higor Carvalho