Hair by itself never has a smell. So any smell good or bad entirely depends on what you are doing to your hair or scalp. There are many ways to make your hair smell good.
Never spray normal perfume onto your hair. It can make hair very dry and also cause damage to the hair. There are hair perfumes and you can try those.
Use a good shampoo with a nice smell that lasts long. If you use a separate conditioner, get one that has a good fragrance. Herbal essences, Tressme are shampoos that smell good.
Following the above steps can get you a good smelling hair.