I told I had an accident, which did not happen and later confessed the truth. I was denied and after I applied again and was denied again. What should I do? Will I ever get a visa to U.S.
Your overstay for a period of 8 months will give you an automatic 3 year ban from entering the US. Whilst this ban can be reduced/removed, realistically that's incredibly rare and would require a very good reason which you seemingly don't have.
Unfortunately by lying to the consular staff you have likely made your situation far worse. In general, making false claims during an interview is fraud, and committing fraud during a visa application leaves you ineligible to enter the US. In some situations Ineligibility can be overturned (via a Waiver of Ineligible, which is a process that only the consulate staff can initiate and takes at least about 6 months to complete), but generally this won't be possible until a suitable time has passed since the incident.
It's not possible to know what details the consulate staff recorded against your application, but presuming they did record your lie then realistically it's very unlikely you will be give a new visa for a very long time, if ever - and even that's only after the 3 years of your ban where the chances are zero.
There is no automatic rule, but you should expect to have a ten year ban.
After that, you are able to apply for a visa, and you would need to make a convincing argument at you would not overstay again.