First things first, you should turn off the main water supply as a thumb rule. Then, immediately call a professional who can fix the issue. As a secondary step, you can try using buckets and towels to fill and soak any excess water that can damage your building before our team lands at your place.