Nonlinear Mechanical Metamaterials: from Statics to Dynamics