If a jet engine is starved of fuel, because the fuel tank is nearly empty, then it can flame out and begin to run down. A first symptom of this is the associated electrical generator dropping off line as insufficient rpm is being produced at the accessory drive to keep it producing electrical power.
Thus the electrical problems reported by the crew may not be a cause of the crash but a symptom of the problem of lack of fuel.......