West Indies defeat Pakistan to end winless streak