You can't pay for your ticket on the tram, you must pay for your ticket BEFORE getting on the tram. If you buy a physical ticket, you must have this ticket on you throughout your whole journey, you must not lose it! If you have your ticket on your phone, make sure that your phone is fully charged.