1.
however; on the other hand :
He might agree. But then again he might have a completely different opinion.
2.
used before a statement that explains or gives a reason for what has just been said :
She speaks very good Italian. But then she did live in Rome for a year (= so it's not surprising) .