Complex sentence: A shock in any direction will cause movement of the mass relative to the cage, and if sufficiently shocked the cage will spring open, actuating an associated switch.
Split into simpler sentences: A shock in any direction will cause movement of the mass relative to the cage. If sufficiently shocked, the cage will spring open which actuates an associated switch.