as AMGeed saysAs above, try resetting the windows.
Turn ignition on but no need to start the car. Hold each window button down in turn to lower the window fully, then raise it and hold the button down for 5 seconds to reset them. You may need to open and close the sunroof in the same way.
Try closing an open window with the remote afterwards.