An Ensign is a special type of national flag for use on ships. Different kinds of ships often use different kinds of ensigns. For example, warships use a naval ensign which is usually different from the ensigns used by other ships.
A Signal Flag is a flag used by ships to send messages to other ships or to people on land. Every ship keeps many different signal flags for use in different situations. Signal flags are also used for racing.