Well what you're talking about is the Internet and the TCP/IP stack. The World Wide Web is an application that runs on the Internet.
To describe the Internet when someone asks how the web works would be like describing how the iOS works when someone is curious about a specific app.