When should a cervical collar be used to treat neck pain?

When should a cervical collar be used to treat neck pain?