Compounds of general Formula (I): wherein R1, R2, R3, Ra, A, B and x are as defined herein are inhibitors of protein kinases in particular members of the cyclin-dependent kinase family and/or the glycogen synthase kinase 3 family and are useful in preventing and/or treating any type of pain, inflammatory disorders, cancer, immunological diseases, proliferative diseases, infectious diseases, cardiovascular diseases, metabolic disorders, renal diseases, neurologic and neuropsychiatric diseases and neurodegenerative diseases.