i want a molecular explanation of behaviour of a piece of material under stress

Tension or compression force on a material causes the molecules to move farther apart or closer together. When the forces are released, molecules return to their preferred intermolecular separation.