Assume I am submitting my paper to Journal X, which rejected the paper. After making modifications I am going to submit the paper to Journal X again. At the same time can I also submit the paper to another Journal Y (which has a lower impact factor than Journal X). As the Journal X has rejected it the first time, I think it may be rejected again. So I want to publish my work anyhow in a journal.
You must not submit to more than one journal at a time. Most journals explicitly forbid this in their policies. The reason is that people agree to spend a significant amount of time reviewing your paper essentially as a favour and their effort is completely wasted if you then say, "Thanks but my paper was accepted somewhere else."
You must decide now whether to resubmit to the same journal or to try for a less prestigious one. Since you're asking the question, I assume you're a student: discuss this with your advisor! That's what they're there for.