You have three options:
# A ‘cheat’ home button that connects via bluetooth, which doesn’t have touch ID. There is a good video on installing it [https://www.youtube.com/watch?v=zPqbS9Vd318|here]
# Taking it to an authorised service provider to replace it. This is because in the iPhone 7 and above, the home button is paired with the security chip. Only apple has the tools to pair a new one.
# Jailbreak your phone and add the iPhone X interface to it, which doesn’t require a home button.