A “dam” is not a type of farm animal.
A dam is a structure that blocks water flow, used for irrigation, flood control, or hydroelectric power.
You may be thinking of the term “dam” as a female parent animal (e.g., a cow, horse, or pig that gives birth). If you meant a farm animal, many female mammals are called dams.