ATM card is a kind of debit card. That mean you can use the card for payment (e.g. EPS) or withdraw money from automatic teller machines. The first criteria is you have enough money in your bank accounts for deduction. It is because the bank would debit (deduct) the money from your bank accounts immediately once you paid or withdrew.
However, for credit card, even though you don't have enough money in your bank accounts, you can still use it for your enjoyment in advance. It is because the bank would grant you a credit limit for the card. Usually, you have to settle the bill on monthly basis. Of course, if you overdue the payment, you have to pay very high interest (usually 20+% p.a.) to banks.