Just give him time, leave some treats in there (if it is safe) so he can view it as a positive place again. Have you checked him over at all? Is the cage broken or is there anything you can do so it won't happen again?
With respect to his crate, make sure he can't get caught again and let him get used to it again. See if he is willing to eat his food or chews in there but don't force him in. Reward any move towards the crate but it may be that for a few days you have to reward him for looking in that direction or moving in the direction of the crate rather than going in there. Give him time and he'll be fine, you've both had a bit of a shock.
What is his bite inhibition like in general? Is he still quite nippy?
I hope your hand is not too painful! Look out for infection which is a possible side-effect of dog bites.