In the Wild
Cows are herd animals and live in groups of other cows, usually led by a dominant bull. They don't usually share territory with other animals, though they may encounter other species in grazing areas.
On Farms
Cows can be raised alongside other livestock, such as sheep, goats, or pigs, often for practical reasons like sharing grazing space.
So while cows don't generally live with other animals in the wild, they can be raised in close proximity to other livestock on farms.