The THESAN project: Lyman-alpha emission and transmission during the Epoch of Reionization