If your rabbit injured itself, and is not eating, you need to stop trying to feed it, and get it to a veterinarian. An animal in severe pain may not want to eat, and if the leg is hurt badly, it may need medical care.
A rabbit that has been off of feed for a day due to pain will likely need veterinary assistance. Remove pellets and feed fresh hay only to avoid stasis.
If your rabbit has stopped eating after any injury this can be a serious matter. A rabbit is a small animal with a high metabolism and can dehydrate quickly which would lead to death. You need to take your rabbit to a vet immediately. Your rabbit may be overly stressed which can result in a heart attack.