Evaluating LLMs and Pre-trained Models for Text Summarization Across Diverse Datasets