Why a garage door go back when trying to close it?

Because it has a spring to slow it down from crashing down to the ground, if it is an automatic engine then it is probably because you are tripping the sensor.