China, Cuba, and Vietnam are all ruled by communist parties and have been communist states since the mid-20th century. Afghanistan has never been a communist country - it has been an Islamic republic, monarchy, and emirate at various times, but never had a communist government.