A historic pub, which has fallen into disrepair, is being sold while plans to restore it and build flats on the site are still undecided.