If nobody has custody then those decisions are made by next of kin which would be parents/siblings/children. I forget the specific order (maybe varies based on state law and context?) but it doesn't really matter for functional families since parents and siblings will generally be in agreement about those sorts of things.
What happens if the child is hit by a car, is unconscious, and needs medical attention?