The two terms are closely related, but fundamentally different. Attention (or more specifically paying attention) is a function of attentiveness, more or less. So a student who consistently pays close attention in class, for instance, is demonstrating a general characteristic of attentiveness. It could also be said that the student is being attentive.