Cost Basis Incorrect

My understadning is that the cost basis of a transaction is pulled from somewhere other than the actual transaction data. Is this correct?
If so, how can we properly tabulate gains?
Also, my transaction are showing Cost Basis and Sales Proceed…yet I have not sold.
Why and how do I fix this?