Generally when your phone appears to be working but you can't see anything on the display, it means the screen has failed and needs to be replaced.
Given your phone was just released last year, your first step should be to check and see if it's still under warranty. Barring obvious physical damage, a failed screen should still be covered under warranty for at least a year after purchase.
If that doesn't work, then your best bet for getting your phone working again will be to replace the screen. On your phone the screen comes already mounted on the midframe, which means in order to replace the screen you will have to basically gut the phone and transfer everything inside to a new screen+frame assembly.
Sorry to say, iFixit doesn't have a guide to that repair for you, but I see that we do have the factory service manuals available that give official repair instructions on your phone. You'll have to get a little creative since I assume you don't have a heat chamber to warm up the phone to remove the rear cover, but a hair dryer can accomplish the same thing.
According to the Service Bill Of Materials (BOM), the part number for your screen is 5D68C24007, so you can search for that or use the phone's model number to find replacement parts.
[document|35883|Moto G 5G XT2417 Global SBOM - iFixit]
Here's the service manual showing you how to take the phone apart and put it back together again.
[document|35885|Moto G 5G XT2417 Level 2 Repair Manual - iFixit]