HOA membership is based on "reciprocal deed restrictions" - so you will want to start with a title search on your property.
This should have been done when you first purchased the property.
When you bought the property, any past due assessments should have been paid as a part of the escrow (so you should not owe for any dues that were accrued prior to that date - if the association failed to collect these dues, then they must pursue the prior owner, that cost is on the association, not you (the current owner), the past owner may be held liable for these costs, but that is not your problem).
Regarding assessments that were incurred following your purchase, you would be liable for these assessments (assuming that you are in the HOA - again, start with a title search and confirm). You can be responsible for attorney's fees incurred in performing collections, however, attorney's fees incurred in "locating" you are not appropriate, the HOA cannot assess fees against individual units for simply cleaning up their previous management issues, errors, and poor record keeping (that is on the Association, not the owner). Debt collection efforts (so if they have to sue you to collect the assessments) can be placed on you.
If you are a part of the HOA, you are entitled to all amenities. Some HOAs do have limitations on certain things if owners are delinquent, but these limitations must be in the written CC&Rs (or governing documents, sometimes there are different titles), you should have a written copy of these documents. The board cannot arbitrarily make up rules like this.