Animals that possess both male and female sexual organs
If your looking for a word to describe what you wrote im guessing this will help you
earthworms,cuttlefish,carter snakes,spotted hyena, african bat bug,Anemonefish, Parrotfish, and Hawkfish are all animal that posses both male and female sex organs