Fuel-injection apparatus having a cyclically-operated valve for connecting a pressure source