You are not allowed to listen to music (using earphones or headphones) when riding your bicycle. You might not be able to hear the things happening around you..
If you get caught listening to music while cycling you might have to pay a fee and the police will ask for your information.