Is the BC337-40 only working with 5v and not 3.3v ?
No, bjt (base-junction) transistors don't care very much about voltage. They are switched on/off by current. Field-effect transistors like mosfets are controlled by voltage and don't need much current at all.