Drake Maye threw touchdown passes to DeMario Douglas and Kyle Williams and ran for another score as the New England Patriots beat the Miami Dolphins 24-19.