Then again has 2 different meanings across 1 category:
Adverb
(contrastive) from another point of view
"on the other hand, she is too ambitious for her own good"
"then again, she might not go"
From another point of view; on the other hand; on second thought; again.