I guess it'd be a big safety headache but perhaps the train could be powered through the rails? To avoid accidents the rails could be split into sections that only get powered when a train is directly above them.
It is only where the vehicle has rubber tyres (i.e. trolley buses) where there are two overhead cables.