I just dump greasy old sockets in a bucket of kerosene for a couple of days. For rust, wire brush or dremel wire brush your sockets held in a padded vise.
For the ratchet, you might want to take it apart to inspect for wear/damage. Also, there could be some really old caked on grease or...