You cannot exercise the privileges of a licence if it is not valid i.e. expired.
An ICAO licence allows you to fly an aircraft registered in the same State(s) as the State(s) issuing the licence, anywhere in the World.
If you wish to fly an aeroplane registered in another State you have to comply with the requirements of that State; this may involve obtaining a validation of your licence or even another licence issued by that State.
If your JAA licence has expired (over 5 years), then you will have to replace it with a new EASA licence; to be of any use you will also need a valid aeroplane class rating an EASA medical certificate and an English Language Proficiency assessment.