If you were infected with Hep A before, then you must be immune against Hep A without vaccination; if you were infected with Hep B before, then the vaccination had no effect unlese you were HBsAg(-) and anti-HBs(-).
Please have a doctor figure you out.
Best.
you better have a blood test called hepatitis panel,in that way you will know what is your status.