Physical conditions like temperature and pressure affect state of matter. ... When thermal energy is added to a substance, its temperature increases, which can change its state from solid to liquid (melting), liquid to gas (vaporization), or solid to gas (sublimation).
Solids resist compression the most because their atoms are a fixed distance apart