Little boy in pajamas playing with a red ball.
A little boy in pajamas was playing with  a  red  ball.
'Little boy in pajamas playing with a red ball' is the same as 'A little boy in pajamas was playing with a red ball'.
(-x)
(-x)