Stabilization of three-dimensional matter-waves solitons in an optical lattice