strip it down and rebuild it. typically only 2 reasons why it won't engage, 1 is an easier fix than than the other.
1. gummed up pawls. fix - clean it, apply a light lubrication, rebuild. this one is easy
2. snapped pawl spring. fix - source a new pawl spring (last time I made one from piano wire), clean it, apply a light lubrication, rebuild it. this one isn't as easy.
there are 2 tools needed, one to get it off the bike, which is normally a 11-12mm allen key and one is remove the outer race that also acts as the lock ring, this is a special tool, but look on ebay for a freehub tool, there a hundreds and they are cheap.