I had the problem with my 07 Mustang, that the window would drop down when I opened the door, but not go back up. I would do the window relearn, and all would be fine for aa while. I finally discovered that my battery was the problem. It was old, and the voltage dropped to low when I started it in the morning, causing the window regulator to lose it's memory. Installed a new battery, problem solved.
2007 4.0 V6 Mustang, Victim of Black Ice
1989 2.3 Fastback, traded for:
2011 3.7 Pony Package, Traded for:
2018 GT 5.0 Premium