Pull a wagon 10 m with a rope. If the rope is level and you pull with 50 N, all of your pull moves the wagon forward, and you do 50×10=500 J of work: 500 J of energy pass from you to the wagon. Now tilt the rope up at 60∘. Part of your pull now lifts the front of the wagon instead of moving it along; only the forward part, 50cos60∘=25 N, does work, so you transfer 250 J.
That is the meaning of W=Fdcosθ: the force component along the displacement times the distance. When θ=90∘, cosθ=0 and the force does no work at all; a satellite in a circular orbit is pulled by gravity at right angles to its motion, so gravity never changes its speed. When θ=180∘, as for friction on a sliding box, cosθ=−1 and the work is negative: the force drains energy from the object.
Work in physics is not effort. Holding a 20 kg suitcase still for five minutes is exhausting, but the suitcase does not move, so the work done on it is zero. Carrying it at a constant height across a level floor also does no work on it, because your upward force is perpendicular to the motion. Your body still uses chemical energy, since muscles burn energy just to stay tense, but none of it goes into the suitcase.
Think of it like this. A taxi fare is a good model: you pay only for distance driven toward your destination. A force along the motion pays in full, a force at an angle pays only for its forward part, a sideways force pays nothing, and a force pointing backward takes energy away, like a refund. The 'currency' is joules.
Core idea. A force transfers energy to an object only through the part of the force along the motion: W=Fdcosθ, positive when it helps the motion, negative when it opposes it, and zero when it acts at right angles.