If a pipe bursts, the first thing you should do is turn off the main water supply to your home. This will help prevent further damage and flooding. Next, turn off the electricity or gas supply to any affected areas to ensure safety. Then, contact a professional plumber immediately for emergency repair services. Do not attempt to fix the burst pipe on your own, as this can be dangerous and cause further damage.