San Francisco’s 127-year-old Anchor Brewing Co. will shut down and liquidate after years of declining sales, citing tough economic conditions.