Aside from wiring problems, you may have two separate issues. Door ajar switch may be stuck from road debris and need to be replaced or cleaned. Window stuck partially down may be the regulator cable has crossed itself on the guide and no longer allows proper length. Both issues will require removal from door and inspection. I had to fix a few fleet Ford Expeditions where the window would freeze to door in winter and operators would try multiple repeat forward/reverse switch operation to break them loose resulting in cable crossing and destroying regulator assy.