Deductions & credits

I did not refinance anything. One bank sold the mortgage to another bank and then that bank sold it to another bank.  When I answer NO to the two above questions, I lose my deduction which doesn't make sense.   Thank you conversing with me on this.  I appreciate any input.