Modern trains don't as they have air conditioning which is ineffective with opening windows. Older trains do have open or opening widows depending on country and purpose of the train. A tourist train is likely to have open windows to maximise the view and in a warm climate, the airflow.