Your window has slid in the track – happens when you have the window open and slam the door for the window in the slider but could also happen to a different window.
Go outside and use the palm of your hand to strike the side of the window up high to move it one way or the other a little until the sides line up with the window seals and allow closure.