A network connects computers and devices to allow sharing of resources and communication. There are three main types of networks: local area networks (LANs) which connect devices within a small area like a home or building; metropolitan area networks (MANs) which connect a city; and wide area networks (WANs) which connect large geographic areas using various media types. LANs allow resource sharing and high-speed communication within an organization, but require memory and add complexity, while MANs and WANs connect larger areas but use different technologies like fiber cables or satellites.