Deductions & credits

One more question: if trustee does not distribute, he is required to file taxes from the sale and since it has not been disbursed is he still required to file? And if so, does trust pay capital gains instead of beneficiaries