It seems that he is taking a sort of revenge by depriving you sexually and emotionally. Stop asking for sex and stop nagging too. Try to overcome your frustration by doing some meaningful activities or job. If you can keep yourself happy and busy in your own activities then he will automatically try to seek your attention and care. At that time, do not rush to please him but let him realize your worth. You have to keep good amount of patience for this.