The answer is Arkwright’s water frame.
This invention is patented by Richard Arkwright in 1768 based on Thomas Highs,
the water frame if for the spinning of the frame and the water power is used to
make it move. This is used flowing water as its source of power.
The answer is Mesoamérica, around 1000 BCE.