If there is still a court order that you are to have no contact with someone, then you follow it. But usually those things don't last two years unless you want it to.
What happened when the case was closed? Did the no contact order get dropped? If so, then not much your child's father can do...