my cube goes through a wall

i have a cube player and it is bounded by walls(Other cubes).I added a rigid body component to my player cube and disabled gravity and kinematics.When i bump into the wall i go straight through it.I tried to enable only gravity but that disturbs the movement of the player.Gravity and kinematics also goes through the wall and when nothing is selected, i bounce off the wall in slow motion.

Please help as i want to keep the cube bounded by the walls.
Any help would be appreciated.

Did you add Box Colliders to your wall? and please make sure they are not triggered.