I am a PhD student working in computational theory which includes some amount of mathematics. I am currently in the middle stage. I have read a few research papers and have been working on some problem. I wonder how new idea's come into mind? I spend most of my time thinking about research problems again re-reading the problem statement and many times I try to read related works. I have been able to come up with new ideas but not something which is something like whole research paper. I try to focus as much as possible but still not focus is not working. I am wondering how researchers come up with new idea.
Question: How to to come up with new ideas or approach for research as a PhD student?
Some advice I have got is read-read and write and repeat but does not work for me.