With your (warm) rent (Warmmiete), you already pay for energy consumption, like
heating your apartment
water heating
lights of common areas in your house, like Corridor lighting
But for energy in your apartment, used for/from:
lights
power sockets
stove & oven (if electric)
water heating (if electric)
you need to make a contract with an electricity supplier.