A resistor is a passive component that resists the flow of electricity. It is used to lower current or divide voltages. Resistors usually fail open or at a higher resistance.
Be careful testing resistors in circuit. They will usually test lower as there are other paths the current can take.
See the full Wikipedia entry on resistors