Learn about this topic in these articles:

social behaviour

The first evolutionary step toward a division of labour occurs in
Polybia. Some female
Polybia only lay eggs. In others, called assisting females, the gonads are poorly developed; these females take charge of repair and construction, larvae care, and food gathering. They thus are useful in the society, even though they produce no offspring. This society lasts at least one summer...