If you pinch a stack of coins between your fingers, the stack stays together. If you then loosen the pressure between your fingers, the coin stack falls apart. Similarly, a pile of sand keeps from spreading out like a liquid because the weight of the sand keeps the grains stuck together in their current arrangement, mostly out of static friction.