If you're working in Roblox Studio, take a look at the toolbar running along the top.
Just to the left of the lock button, you'll spot the anchor button. Click it to fix your bricks in place so they won't move or fall during play.