You need to generate power with manual crank, stirling engine or nuclear reactor. When you placing generators there is a highlighted zone in which electricity goes into machines. Generated electricity can be received everywhere, but you need a transmitter pylon to receive it and send to machines. To make it simple: you need to generate power in generators, receive and send it to machines with pylons.