Malaga's Samuel Castillejo produced a wonderful piece of headed skill as he met a cross and looped a header over the Valencia goalkeeper for the winning goal.