to fix your iPhone button you have to search for your nearest and best service center but for meanwhile working purpose you can go with this process
1. go to settings
2. select general option
3. now in that select accessibility option
4. now in that select the assistive touch option and on it.
this assistive touch option helps in performing so many operations without the help of buttons.