Answer
a. The component of gravitational force parallel to the incline in picture B produces an acceleration parallel to the incline. This is because of Newton's second law.
b. The downhill force component, multiplied by the distance the ball travels downhill, is the work done on the ball. The work-energy theorem tells us that this equals the ball's change in kinetic energy.