When you have a Module, hold it and press S to snap it. Repeat this with another module to connect them.