This is almost always the result of a dirty or obstructed safety feature.
Garage door closes then reopens.
Your garage door is programmed to travel a certain distance before it closes.
If it closes before that distance has been traveled it thinks something is wrong and it reopens to help prevent any damage or safety risk.
You push the button to close the garage door.
If your garage door won t open or close the problem could be a bent track a broken torsion spring or a bad capacitor int he motor housing.
It goes partway down reverses direction and goes back up again.