Equilibrium and dynamics of the Ising model