Your computer, like your car, needs proper maintenance to perform at its best. Knowing your way around your PC and conducting routine repairs will keep it in good working order.
Your computer vendors will offer service contracts for some additional fee beyond the purchase price. Read Do I Need a Service Contract for My Business Computers? to determine whether this is worth the cost. And, for additional guidance on the actual purchase process, check out How to Buy Computer Equipment for Your Business.