I wouldn't be worried about him not eating, 2-3 weeks isn't really a long time for them to go off feed. Does he have hides? What size is his enclosure? You can also try asking the person you got him from about their setup and substrate see if you can replicate it so he can feel more comfortable. Also ask what they were feeding him and do the same