Another way to say "spices are used to flavor food" is "Spices make food more flavorful."