The capsule goes in but the cube doesn't, I want the capsule to get blocked as the cube

It might be because you box collision is parent to everything else.

Yes, that is the case, But I want the children(capsule) to collide too, is it possible?

Yes, I think if you put them as components in their own right.