spanner the cat,
the following is a quote from the EU website....
The amount of your pension will be calculated in accordance with the legislation of the country where you worked in exactly the same way as for its own nationals.
It does not matter whether or not you live there when you reach the pensionable age, you will still be paid a pension.
You should claim the pension in the country where you last worked if you have never actually worked where you live.