A compelling question and one that every writer thinks of. The tyranny of the blank page. My wife found a great psychological study on how to get one self motivated. I have said it on here and I will say it again (hoping someone tells me where exactly its from because I don't remember.) "Slow is smooth, smooth is fast." It refers
to just getting started but slowly and surely every day.
The hardest part about going to the gym is just going. You have to get your bag get dressed, get in the car and drive there, that is already like three things and its just UGH. What if thats all you had to do though? Then its just three things and you are done. Now you are at the gym, may as well workout. Or go back home and try again tomorrow. You are in the slow part and its ok. If you did that every day, soon it becomes habit. The hard part isn't the workout its getting into the habit of actually going to the gym. Once you are there everything else is easy.
Sit with the intention to write, if nothing comes to time, come to this site or something and write something else. Read something that inspires you but just at your computer. The hard part is making writing time the habit, not the actual writing itself.
Now you are writing, you are in the smooth part, its going ok but don't pressure yourself. Sometimes that leads to the fast part when you are flowing and sometimes not. Sometimes fast goes back to smooth which goes back to slow but all of that is better than nothing. If you sit around hoping motivation strikes like inspiration, you will get neither. You control your motivation AND your inspiration. If you are not inspired go someplace or do something that does inspire. If that fails do another thing that inspires. Then if that doesn't work, take a shower, golf or play video games. Inspiration comes when you least expect it, so stop expecting it. Same with motivation.