Probably the electric eye sensor is blocked, fallen off, etc. So the door thinks a person is under it. If it goes down, it will hurt someone. So it won’t go.

On my door, the only way to close is to hold the button down continuously until it is completely closed. Of course, it is best just to reconnect the electric eye thing.