A short focal length such as 24 mm fits a wide scene in. A longer one such as 85 mm pulls a small part of the scene closer and softens the background. The sensor does not change; only the angle of view does. On a full-frame sensor 24 mm is about 84 degrees and 85 mm about 29 degrees.