Electrical heat tape is a product specifically designed for pipes. It contains a heating element that warms up when plugged in.
This is the first line of defense for drain pipes, as the blockage is often in the P-trap (the U-shaped bend under the sink). how to thaw a drain pipe