BPS states on elliptic Calabi-Yau, Jacobi-forms and 6d theories