Piloto,
A controllable pitch propeller (variable pitch, or constant speed) works using blades that rotate in a cuff built into the propeller hub. These blades are geared at the end, and are moved by a piston inside the hub which works on a helical principle. The piston moves forward, and twists internally. As it does so, the gearing attached to the piston moves the gearing on the propeler blades, causing them to rotate, simultaneously. This is easier to see in a disassembled prop than to draw a picture with, using words (obviously).
The point here is that a mechanical arrangement inside the prop hub causes the blades to twist or rotate together.
Several forces are used to move this piston in actual operation. Inside the propeller hub, generally a large spring exists, or in some cases large geared counterweights, and in many cases, a nitrogen charge. In most cases, these forces are arranged to push the piston to move the blades to the low pitch stops, or the high RPM position.
Assisting these forces in flight is aerodynamic twisting force (ATF), which attempts to move the blades to the most streamlined position, at or near the low pitch position (varies with airspeed and prop load).
Opposing these forces in most cases is engine oil pressure. It's routed through a propeller governor. Inside the governor, which is driven from the engine on an accessory shaft, is a small assembly with little weights on it. As the shaft spins, the weight move outward, and as they do, they move a pilot shaft with a valve on the end via either leverage or gearing. The pilot valve or shaft ports oil under pressure from the engine oil pump (or in some cases a dedicated prop oil pump) to the propeller. Most comonly this is done through a hollow crank shaft.
The weights in the prop governor are called "flyweights". As the engine spins faster, the weights move faster, and centripital force spins them outward. They move out, and up, and through gearing and leverage, move the attached valve down, moving the shaft to allow oil to be ported through drilled holes to the desired path. Again, better to see a picture. In any case, the oil is most often ported to the rear of the propeller piston, sometimes to both sides, and sometimes to the front.
By varying the oil pressure on the back side of the propeller piston, the piston is moved forward and aft. Most light airplane propellers move the piston forward using engine oil pressure supplied through the crankshaft via the propeller governor, and move it aft using nitrogen and spring pressure, and ATF in flight. Some systems use constant positive pressure on the back of the piston to drive the propeller into feather in the event oil pressure is lost; auto feather systems. Some systems also incorporate accumulator's, or charged cylinders or spheres that store prop fluid or engine oil under pressure to assist in bringing a prop out of feather.
For these specifics, it's best to refer to the aircraft system you're learning, and the easiest way to do this is through the aircraft maintenance manuals. The aircraft flight manuals and pilot operating handbooks are essentially idiot manuals; the real information is in the maintenance publications. If you want to get to know a system, study these. Good luck!