A fresh clean install of the operating system is the preferred method of installation to an ssd.
If you have the Microsoft Windows 7 disc and product key, then you install it just like you would to a hard disk drive. Prior to installation temporarily unplug your old hard disk drive. In addition, access the motherboard system BIOS and make sure AHCI mode is enabled instead of the old IDE mode. Also make sure the ssd is selected as the primary boot drive.
If you have Microsoft Windows 10 you would use a flash drive instead of a disc.
If you do not have the Windows disc or flash drive, then follow advice posted by BadAsAl and get the Microsoft Windows ISO file that matches your version of Windows.
You actually asked about transferring Microsoft Windows from your old hard disk to a new ssd. There are data migration applications, commonly referred to as "cloning software" that can be used to transfer files from an old hard disk drive to a new ssd. They usually work reasonably well but sometimes problems develop. We've had entirely too many threads in this forum about cloning failures. In addition, Microsoft Windows has a tendency to turn into a "bloated pig". By that I mean Windows does not do a very good job of deleting old, useless, redundant, files and registry entries. No point in transferring useless Windows files and useless registry entries.