if you select only the two vertices you want to mege at a time then use merge vertices, if thy don't connect, go to the channel box and open the merge vertices options and increase the distance until they do