A “social instinct”, in my opinion, must be considered separately from “ethics”. Instincts are behaviors which have been fine-tuned by natural selection. Ethics are subjective judgments applied to behaviors – judgments of what is “right” or “wrong”. There is no “rightness” to herding; it is simply viable as a survival strategy. There is no “rightness” to cooperation; again, it is simply a viable survival strategy. It is this judgment, as applied to specific behaviors, that does not have a biological, thus evolutionary, component.
As for the sacrifice bit, I’m not aware of any speicies (aside from humans) wherein an individual will willingly sacrifice its ability to reproduce (or live) for the benefit of any non-related individuals. Maternal care is an example of an instinct which allows a mother to sacrifice herself in an effort to protect her offspring; such might still allow the mother’s genes to perpetuate, thus representing a viable evolutionary strategy. Sacrificing oneself for another’s offspring tends not to have this benefit, unless a complex social structure is already in place with an assumed “you scratch my back, I’ll scratch yours” sort of thing going. Or, in this case, “I’ll sacrifice myself for your kids if you sacrifice yourself for mine.” This is about the only circumstance I can conceive (and I freely admit that this does not rule out other possibilities) which would yield an evolutionary benefit, which would therefore allow it to have arisen as a result of evolution. Such a relationship I doubt exists outside of humans.