Chosen Solution

My screen is black but the phone is still working, I can hear the unlock sound when I unlock it. Any ideas about what component is at fault and what i should replace?

The most likely thing that would cause this is that the screen is broken since you have indications that the phone itself does respond and therefore working. If you want to do it yourself, this is the guide that will show how to replace the screen for your device. The parts and tools needed are linked in the guide as welliPhone XR Screen Replacement I would recommend you to read through the guide before ordering the parts etc., to make sure that you feel comfortable with doing it yourself. Otherwise, the best way would probably be to take it to a professional place for reparation. Good luck with the repair!