I am looking for an example (or a method to create my own examples) of diffeomorphism on a cube onto itself, similar to the wikipedia example on the page with the same name:
but in 3D. I'd like to have an example, but ideally I'd like to learn how to create examples myself. I understand the constrains that a diffeomorphism should have, and I think I'd be able to see if a given function is a diffeomorphism, but I dont know how to do the inverse.
(I guess that my problem is not a diffeomorphism)

I assume that you at least took a vector calculus and differential equations class (or classes). What you need is a smooth (at least continuously differentiable) vector field $V(x,y,z)$ on the cube $Q$, which vanishes on the boundary of the cube. For instance, you can (but do not have to) take $V$ as the gradient vector field of a smooth (at least twice continuously differentiable) function $f: Q\to {\mathbb R}$ whose 1st order partial derivatives vanish on the boundary of the cube: $$ V=(\frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}, \frac{\partial f}{\partial z}). $$
If you have hard time finding vector fields $V$, you can prescribe them numerically, on a sufficiently fine rectangular grid.
Once you have a vector field $V$, you consider the following ODE (ordinary differential equation; more precisely, a system of ODEs) $$ \frac{d}{dt} h(x,y,z,t)= V(x,y,z) $$ with the unknown function $h$ and the initial condition $h(x,y,z,0)=(x,y,z)$. Now, there is a theorem saying that this differential equation has a unique solution $h(x,y,z,t)$ for all $t\ge 0$, which defines a family of diffeomorphisms given, for each value of $t=t_0\ge 0$ (say, $t_0=1$), by the map $$ (x,y,z)\mapsto h(x,y,z, t_0). $$ Every such map will send the cube to itself, fix the boundary pointwise (i.e. send each boundary point to itself).
Solving ODEs is not easy but you should be able to find some software that does it for you numerically, which, I think, is all what you care about. For instance, both Mathematica and Matlab will do it. There is probably even some free software available.
You can also ask if every diffeomorphism of the cube to itself arises this way. This is not true but not far from being true. For instance, if you require that the diffeomorphism fixes some neighborhood of the boundary of the cube pointwise, then it will appear as a solution (for $t=1$) of a non-autonomous ODE very similar to the one I described above: $$ \frac{d}{dt} h(x,y,z,t)= V(x,y,z,t), $$ where $V$ is again a vector field on $Q$, but now it is also time-dependent ($V$ vanishes near the boundary of the cube). The initial condition is the same as above. The fact that all diffeomorphisms appear this way is a much-much harder theorem than the one I mentioned earlier. (For instance, this theorem is false once the dimension of the cube is $\ge 6$.)
Hope it helps.