Hi Vicky,
If you have a serial number for CS5 then you can download it via this link: Download CS5 products
Also, make sure that it is uninstalled from your machine, Windows: Control panel>> Uninstall a Program
Mac: Go>> Applications>> Utilities>> Adobe Installers>> Uninstall CS5.
-Ankit