In an airplane, the wings are designed to create lift, which is the force that opposes gravity and keeps the airplane in the air. The shape of the wings and the angle at which they are attached to the fuselage (the body of the airplane) cause the air to flow over the top of the wings faster than it flows over the bottom. This difference in airspeed creates a pressure difference, with higher pressure below the wings and lower pressure above the wings. This pressure difference creates lift.
In addition to lift, airplanes also need thrust, which is the force that propels the airplane forward. Thrust is generated by the engines of the airplane. The engines push air backwards, which propels the airplane forward.
Finally, airplanes also need to be able to control their flight. This is done by using control surfaces, such as ailerons, elevators, and rudders. Ailerons control the airplane's roll, elevators control the airplane's pitch, and rudders control the airplane's yaw.
By using the principles of aerodynamics, airplanes are able to fly.