I would like to know where gravity gets its energy to attract physical bodies?

I know that the law of conservation states that total energy of an isolated system cannot change. So gravity has to be getting its energy from somewhere, or else things like hydropower plants wouldn't be able to turn the power of the falling water into a spinning rotor.

Just to be clear, Lets create an example:

Lets say we have two objects with equal mass close to each other. So gravity does its job and it pulls each other closer, this gets turned into kinetic energy. This is where I'm lost. According to the law of conservation energy can't be created or destroyed and the kinetic energy comes from the gravitational pull so where does the gravitational pull gets its energy.

If that energy isn't being recycled from some where else then that means you have just created energy, therefore breaking the law of conservation.

According to the conservation of energy, we cannot create or destroy energy, we can only transform it from one form to the other.

So this justifies that gravity doesn't have an infinite source of energy which never runs out! So it must be getting this energy from somewhere else, right?

Let's take the example of a ball dropped from some height. Gravity of the earth pulls it downward, doing work on the ball and giving it kinetic energy. The question you ask is where did it get this energy from?
Go back a step and think about how this ball ended up at such a height? You lifted it up with your arms, and put it on that height. Your arms did work against gravity, spent some energy to put that ball on that height. Where did that spent energy go? This was given to gravity!

When you do work against gravity, you store energy in the gravitational field as gravitational potential energy, which then gravity uses to do work on that object. 

In case of hydro power-plants, the sun is giving energy to the water at sea level, to evaporate and rise(in effect doing work against gravity), which ultimately ends up in dams at a higher height, and then falls converting that initial solar energy to electricity!
