The air flowing from high to low pressure causes the wind. The rotation of the Earth averts the flow of the wind in a straight direction and it is redirected from side to side. This effect is called the Coriolis Effect.
The speed of the wind is determined by the proximity of the low and high pressure areas. The closer they are, the stronger the wind will be. The uneven cooling of the land causes the wind to blow. It is the way of the nature to redistribute the heat at the surface.