In any emergency it is important to remain calm. Crew members should know in advance what their specific duties are in an emergency, and carry out those duties in an orderly fashion.
The best method for putting out a fire depends on the kind of fire it is. For example, some types of fire extinguishers are effective against fires in wood or paper, but not effective against electrical fires. All crew members should be familiar with the types of fire extinguishers on the vessel, and how the extinguishers should be used.
In general, a fire will keep burning as long as there is heat, air and a source of fuel. To put out a fire you have to take away one of these elements.