The correct answer is: A. who are living in communities
The sentence is about social insects, which are insects that live in colonies. The colonies are regulated by definite laws, and each member of the colony has a well-defined and separate part to play in the work of the colony.
Option A is the most concise and accurate way to express this idea. It is also the most grammatically correct option.
Option B is not as concise or accurate as Option A. It does not make it clear that the insects are living in communities.
Option C is not as concise or accurate as Option A. It does not make it clear that the insects are living in communities. It also implies that the insects are living with humans, which is not the case.
Option D is not an improvement on the original sentence. It is the same as the original sentence, except that it is missing the word "who."