The property described in this question is called Elasticity which is the ability of a substance to regain its original shape and size after the removal of the distorting force.