What are the factors that affect resistance in electricity?

The length of the object, its cross-section, the material it is made of, the temperature.