How your phone knows where you touched it
The glass on your screen looks simple, but underneath it is a fine grid of transparent conductors. A weak electrical signal runs through them, and together they create an electric field just above the surface.
The human body conducts electricity. When your finger gets close to the glass, it draws away a little of the charge at that spot. A controller constantly scans the grid and notices exactly where the capacitance changed. Hence the name: a capacitive screen.
That's why ordinary gloves don't work: fabric doesn't conduct. Special touchscreen gloves have conductive threads sewn into the fingertips. A pencil won't work either, but a special stylus with a conductive tip will.
Multi-touch arrived once engineers learned to detect not just one change but several at once in different parts of the grid. That's how your phone tells a two-finger pinch to zoom from a regular tap.
This also explains some everyday quirks. Wet hands or drops of water on the screen confuse the sensor, because water conducts too, and the phone sees dozens of false touches. Wipe the screen with a dry cloth and it will behave again. So a clean, dry screen is half of good responsiveness, and the other half is a working controller.