Valve gear
The valve gear of a steam engine is the mechanism that operates the inlet and exhaust valves to admit steam into the cylinder and allow exhaust steam to escape, respectively, at the correct points in the cycle. It can also serve as a reversing gear. It is sometimes referred to as the "motion".
Purpose
In the simple case, this can be a relatively simple task as in the internal combustion engine in which the valves always open and close at the same points. This is not the ideal arrangement for a steam engine, though, because greatest power is achieved by keeping the inlet valve open throughout the power stroke (thus having full boiler pressure, minus transmission losses, against the piston throughout the stroke) while peak efficiency is achieved by only having the inlet valve open for a short time and then letting the steam expand in the cylinder (expansive working).
The point at which steam stops being admitted to the cylinder is known as the cutoff and the optimal position for this varies depending on the work being done and the tradeoff desired between power and efficiency. Steam engines are fitted with regulators (throttles in US parlance) to vary the restriction on steam flow, but controlling the power via the cutoff setting is generally preferable since it makes for more efficient use of boiler steam.