A sprain happens when wrist ligaments are stretched ... you fall and catch yourself on an outstretched hand. A scaphoid fracture causes swelling, pain, and tenderness below the base of the thumb.
Treatment for swollen finger joints will depend on the cause. For less extreme injuries, rest and icing the swollen location might be enough to lessen the inflammation, but in more severe injuries ...