The metal can be compressed (squeezed). When the compression force is removed, the spring returns to its original length. The metal is usually spring steel, and it is wound tightly. There is lot of varitions with size and type, example some springs have designed for pulling, not pushing. Gas-springs are often used with vehicles tailgate.