In the days before skyscrapers, walls supported buildings. However, with the rise of skyscrapers in recent years, columns and beams are mostly used to support the building.
Walls have a great function in modern architecture, especially for exterior use, as they keep out rain and wind, insulate noise and heat, and do not expose the columns and beams to the outside world.