Three family members are behind bars after two children in their care were found to have been subjected to torture.