How do I pay taxes for a stock sale of a deceased person? He died in 2002. The sale was in 2021.

The shares were in book form.  I didn't know about them until I received the check.  Even though the stocks were in his name, am I the owner since I'm his heir?  How do I report the sale when it is not my social security number?