If a son had died before his next brother was born, this younger brother was usually given the same name. The same goes, mutatis mutandis, for a daughter.
If a son died before his next brother was born, the younger brother would typically be given the same name as his deceased sibling. The same principle applies to daughters.