England have won a rain-marred second one-day international against Sri Lanka courtesy of the Duckworth Lewis method.