First, locate the sprinkler head and turn off the water supply. Then, use an impact sprinkler wrench to pry up the top of the sprinkler and unscrew the internal mechanism. Next, remove any debris from the area surrounding the head and insert a new one. Make sure it is firmly in place before turning on the water supply again.