Hi Jong, I can't speak english very well and of course I'm not a teacher but I'm trying to help you ...
The translation of your sentence is similar to :
Elephants prefer to live in groups and before dying, they looking for water to die close to it, and die next to each others.
"Ella" in this context, stands for it refering to the water
"Proximos unos de otros" stands for the elephants die close to other elephants ... together ...
I hope I can help you. Greetings.