The government accepted the return

My federal tax returned and state was accepted after have been filed. I received the refund of the state, but instead I got a letter from IRS, zero refund from federal. I have the letter and explanation. I need help to understand the circumstances.