Check the connector between the door and a-pillar. If the connection is loose/damaged/corroded this can do all kind of weird things with your windows. Also worth ceking the condition of the cable from the connector to the motor (brown thicker cable) which can become brittle and break causing similar issues