How to Make the Bricks Shake Like an Earthquake Simulation
What your result may look like.





Go to the Graph-Editor. Set a (location) keyframe for your cube, then select the "Z Location".

Press N to bring up the side panel, and select modifiers.

Add a noise modifier and controll your Earthquake with Scale, Strength, Start, etc.