If your vertices are right on top of each other, you can select them all and merge with a distance of something very small, like .0001 and only those that are within that distance of each other will merge together.