Cats are relatively independent, so to build a bond and make them more affectionate, you need to start training them from kittenhood. Hold and pet your cat often, and learn the correct techniques to make them feel comfortable; they will naturally become attached to you. 
To get your cat to be affectionate, you must prevent it from holding grudges. Hitting or scolding it is not allowed, as cats that resent their owners are very difficult to train. Use toys and food, play with your cat often, and interact with it frequently; gradually, your cat will become affectionate.
However, every cat has a different personality. Some cats are naturally not affectionate. No matter how comfortably the owner serves them, how well they are fed and cared for, or how kind they are to them, the cat just won't be affectionate, and there's nothing that can be done about that.