Apple doesn't repair iPhones, they replace them. If it's out of warranty, the price is $199. Take it in to the genius bar, it's not unheard of for them to replace them at no charge, but don't count on it.
Have you tried the usual troubleshooting steps already? Re-set, restore, restore as new? Does it register at all? Ever? It may not actually be a hardware problem.