Was any registered agreement executed between A and B
on what basis share certificate endorsed in favour of B
it is necessaey to perise documents cited by you tp advice
take search in sub registrar office and obtain copy of sale deed executed in favour of purchaser
original chain of documents must be with seller