Does masterbation lowers the ability of having children?

Not necessarily. The male testis is able to produce a bountiful amount of sperm every day whether they are used in some fashion or not. In females the process does not matter either. To the extent that one is preoccupied with the process and never develops a partnership where pregnancy could occur, it might be a problem.