Passengers were forced to evacuate a commuter train near Philadelphia after a fire broke out on one of the cars.