Magnetic ordering in cubic crystals with first and second neighbor exchange