Dear student.
Ribcage protects the various vital organs such as heart and lungs. If the rib cage gets broken or damaged, it causes injuries to the lungs and the heart.
The brain is protected inside a bony box called cranium. The cranium is part of the skull that holds and protects the brain in a large cavity.
Regards.