Stars can be seen as modern physics laboratory from which fundamental processes asdiverse as atomic physics or turbulence can be studied and understood. Being able to modelaccurately their structure, dynamic and evolution is thus of fundamental importance and isthe subject of intense research. In this short review we will present some of thenumerical simulations in three dimensions performed in recent years to model such complexand nonlinear objects, focussing mostly our discussion on results obtained with theanelastic spherical harmonic (ASH) code. Using the Sun as a reference star, we wish togain insight and to constrain magnetohydrodynamical processes (such as Reynolds andMaxwell stresses, meridional circulations, differential rotation (i.e. ω-effect), thermal wind, α-effect) at theorigin of the solar small and large scale dynamics and magnetism. We will then extend ourstudy to other stars, such as young Suns, massive stars or evolved RGB stars in order toidentify which processes are at the origin of their significantly different dynamics.