Three-dimensional natural convection motion in a confined porous medium