The main thing is the sun. While the earth rotates it is colder when dark and warmer when light. Hot air moves towards cold air so when the sun beats down it creates heat and hotter air and higher pressure. But the opposite occurs at night. Now when it’s dark it will be somewhat colder and lower the pressure somewhat. So the movement of air from hotter areas to colder areas creates wind. The wind and the hot sun pull moisture from the oceans, lake, river, and ground and creates clouds. When the when the warm cloudy air hits the colder air you often get rain, sleet, snow or hail. Sometime you get hurricanes or tornadoes. Also the earth rotates right to left or from the east to the west. This rotation tends to pull the wind from the west towards the east and along with the higher temperatures toward the equator the wind usually wants to got from the southwest to the northeast.
In another blog I will write more about fronts…the place where most of the weather action occurs.