Answer:
Gravity
Step-by-step explanation:
Lets take the mass of the pendulum = m
Angle from vertical axis = θ
From the diagram
The gravity force mg have two component ,First one mg cosθ and other one is mg sinθ.
The component of gravity force mg sinθ is responsible for the motion of the pendulum ,that is why gravity does work in the pendulum.
Therefore the answer is -
Gravity