Meaning: This sentence describes the movement of worms in the soil, which is a common sight after rain.
Choice of Words: "Worms" are small, elongated invertebrates that live in the soil, "wriggled" means to move with a twisting motion, "damp soil" is soil that contains moisture.