This can sometimes be confusing. Both are viral infections and both can affect the nose and the throat.
Flu, however, is usually accompanied by a high fever and muscle aches and pains and a dry cough, which distinguishes it from a normal cold.
(See the difference in symptoms of colds and flu. )