Two choices. Buy parts, open the phone and replace thm yourself. Thn come here, tell us what else doesn't work and you'll probably be told to take the phone into a repair shop to fix what you broke.
Or you can being the phone into a repair shop and pay them to fix the original problem - which is a lot cheaper.