Motor and brake actuated together