When should I get a flu shot and why is it important?

When should I get a flu shot and why is it important?