Vacuum the sliding window tracks with a brush nozzle attachment to remove any debris that is making the window catch. Slide the window up and down to vacuum all parts of the track.
Remove the sash from the window by unscrewing the hardware or screws that keep it in place. All windows are a little different; the window may have locks or other stoppers.
Tilt the window sash and lift it up and out of the frame. Examine the track.
Vacuum the track again, now that it is clearly invisible.
Straighten the tracks by placing a wood block on one side and pounding the block with a hammer to align the tracks. Work slowly so you don't further bend the tracks.
Spray a silicone lubricant onto a cloth and wipe it into the tracks to help the window move easier.
Reinstall the window by sliding it back in position and screwing the hardware in place.