Answer:
A. By burning coal in a boiler to produce steam. The steam produced, under pressure, flows in a turbine, which spins a generator to create electricity
B. Wind turns the propeller-like blades of a turbine around a rotor, which spins a generator, which creates electricity