Resistance is the p.d. across a component divided by the current in it. It tells you how hard it is to drive current through that component. For a metal wire at constant temperature the resistance is constant, so current is proportional to p.d. This is Ohm's law.
Many components do not behave like this. A filament lamp gets hotter as the current rises, the metal ions vibrate more, electrons collide with them more often, and the resistance goes up. A diode conducts in one direction only.
The resistance of a wire depends on its size and on its material. Resistivity describes the material alone.