Artificial Intelligence and Communication: Exploring the Pragmatic Ability of LLMs