@suwon kim,
Either one is acceptable, both are understandable. I feel that the infinitive (to help) is more direct and denotes action.
1) Hoping to contribute her skills to help the British troops fighting in the Crimean War, Nightingale accepted a nursing position at an army base in Scutari, Turkey in 1854.
Sometimes it can be helpful to alter the sentence structure:
2) Hoping to contribute her skills, Nightingale accepted a nursing position at an army base in Scutari, Turkey in 1854 to help the British troops fighting in the Crimean War.
"Helping" would not work in example #2.