There are a few options you have. First you need to make sure the lines or groups of lines that you intend to connect are combined. So you need to select them all and combine them or Ctrl + L. Then, when you have the shape tool selected, in your top toolbar once you have selected your nodes...