If a leak is major, turn off the water immediately, either at the fixture shutoff valve or the main shutoff valve. You’ll probably have to replace the leaky section of pipe. If your experience working with pipes is limited, you’ll probably want to call in a plumber to do the job. If the leak is small, the ultimate solution is to replace the pipe, but there are temporary solutions until you have time for the replacement job.
These methods work for small leaks only.