Some locally heavy rain could cause flooding in parts of New Hampshire and Maine before a storm system moves through New England on Sunday.