Drawing lines between blocks, inputs, or outputs will create a link. To create a working program, you need to make a path from an input to an output.
Since we connected distance sensor to the blue input, and the motor to the green output, we link the blue input to an inverter block and link that block to the green output.
This will send inverted values from the sensor to the motor.