You were refused entry at a Schengen border control point because you intended to work but did not have the proper documentation to work. In order to work in the EEA you need to be an EEA national or have a work permit issued by one of the member states.
So you returned to your home country and filed a proper application which was refused...
I did and today when i went to fetch my passport i was told that my
visa application was denied because i was refused entry once.
This is a partial reason only. Your refusal of entry was recorded on a database and there's an article at On which registry or list are Schengen refusals of entry recorded? describing the process. Despite internet lore that refusals of entry are not recorded and have no effect on a person's history, those events are in fact taken into account.
But I say 'partial' because a visa refusal on this basis alone is disproportionate and unlikely to happen. You would have received a letter giving you you the lawful grounds for your visa refusal.
Your questions...
Do i still h ave chance of getting a visa?
Yes. But given what's happened so far, it's likely you will need your next application to be represented by a practitioner with a practice area in work permit refusals.
Are there any kind of appeal i can make?
Yes, it is mandatory that the member state issuing a refusal provide appeals information whenever an appeal pathway is available to an applicant. It would be in your refusal notice. If you did not receive your refusal notice, or you misplaced it, you should submit a freedom of information request (or let your practitioner handle it).
If you have a question about a specific work permit, you can use the Expats site.