For science PhDs funding is awarded in a process of peer review. The research projects are set by the supervisors, who then apply for funding. Grant proposals are then reviewed by other scientists in the field. If you wish to follow your own research proposal you will need to fund yourself, as well as find an academic to supervise you.