Need help with fire tv

I have a firetv and remote not working. I have tried everything but nothing happen. So I down loaded amazon app on my android phone and it asked for a 4 digit code. The only numbers I see on the firetv i put those in when it asked and still nothing. When I plug in my fire tv it’s wants to pair the remote. But that’s all that come up on the screen. Is there another way around this. It worked the first time I installed Kodi but after that nothing.
I am a newbie and I could use all the help I can get…. I hope there is a way to get this Firetv back to home screen…..Thanks,