Health savings accounts save on taxes in two ways: Contributions are tax-deductible, and distributions can be tax-free, subject to certain rules. Learn how they work.