Hi, Welcome to JustAnswer.com, I am glad you are here! My name is Eric & I will endeavor to answer your question.
The symptom you are describing is indicative of a failure in your safety sensor circuit. When the safety sensor circuit is malfunctioning, the door will open as normal with the remotes, keypad (if you have one) and wall buttons however, will not close with the remotes or keypad and will only close by keeping constant pressure on the wall button.
The problem is likely going to be one of the following:
A. The safety sensors are dirty. - Wipe lenses with soapy water and a clean soft cloth
B. The safety sensors are misaligned (This is the most likely problem and the most common issue with Garage Door openers). - Follow the safety sensor alignment instructions in your owner's manual. If you do not have a copy of your owner's manual you may download a .pdf copy to store on youe commputer here:
C. There is a broken or disconnected wire between the motor and the safety sensors. - Carefully follow the wire path and do a visual inspection to ensure a continuous connection.
D. You have a defective sensor which requires replacement.
E. In rarer cases still, if all of the above has been attempted yet the problem persists, then there has likely been a failure in the logic board which would then mandate it's replacement.