Voltage pushes current through a circuit and resistance limits it. Ohm's law: R = V / I. A red LED on 5 V needs about 2 V and 20 mA, so the resistor should be (5 - 2) / 0.02 = 150 ohms. Use the next bigger common value, like 220 ohms.