If it primarily sustains you in the way that food sustains you, it's a food. If it primarily sustains you in the way that water sustains you, it's a drink.

Soup is a food.