Task does not get to run allthough in Ready state

A reason can be wrong interrupt priorities for interrupts using FreeRTOS API in their corresponding ISRs resp. ISR callbacks.
See e.g. Understanding priority levels of ISR and FreeRTOS APIs - #16 by aggarg for a pretty good explanation.
Did you define configASSERT and also enable stack overflow checking for development/debugging to catch possible fatal errors or data corruption ?