Who chose the place a child stays when they are taken from there mother?

They will be taken to a foster home by social services or even to a relative.