To the OP, sorry to hear that. You did not give enough detail in your post for someone to be able to help you. I would assume your medical was denied due to how you answered question #18, pertaining to your medical history. Get with AOPA or your AME to see what can be done for special issuance. Some medical conditions (Per 14 CFR) are automatically disqualifying. Other conditions can be mitigated. You really need to seek expert medical advice here.