No matter what kind of writer you are, you've probably come head-to-head with the famous writer's block. Often it feels hopeless to attempt to do anything other than wallow in misery and wait for that "aha!" moment to rescue you. That being said, there are better ways to get yourself writing again.
1. Divide and conquer
The best way to get yourself out of writer's block starts out with knowing what you want done. If you're writing a novel, look up plotting maps and break up your general outline into manageable chunks. If your writing is a bit less straightforward, try to break it up to the best of your ability. Then, focus on the section that intrigues you the most. Don't worry about starting at the end. Put all of your time and efforts into getting that part done. Once you've finished, you'll have more than you started. More often than not, you'll be more motivated to work on your project if you have something to start with.
2. Set goals and deadlines
While it would be great to continue jumping scenes, it's always a good idea to have a little more discipline at times. Set up a general outline of how much you want done by a certain time. Don't make your deadlines too strict right away. Try testing out how much you can get yourself to do at a time. If you challenge yourself too much, you'll quickly discourage yourself. That being said, if you can work out a schedule that works for you, having a permanent deadline will motivate you to get it done.
3. Find an audience
Lastly, it's always nice to have a group of readers who are waiting for you to finish your works. It doesn't matter who your audience is. They don't have to provide any editing advice, but it would be good if they're generally a group of people who are excited to see more of your work. Just knowing that there are people who are waiting to read something you've created can be the most motivating thing about writing. Don't be afraid to reach out online if you aren't comfortable with your friends or family reading your first drafts. There are plenty of supportive online communities!