Passengers on board a burning ship were forced to jump into the water to escape the flames.