Software Serial Problem (help, please!)

There is a blink function, i just didnt put here.
The history about this code is that i tried the communication part first and worked. Than, i started another program and did the control part (of the motor that i should control) and worked too. But when i put it all together, the communication part didnt work anymore.
When i comment the function "calculos", the communication started to work again, so is this function that is not working, but i dont know why.
Actually, any function that i put together with the communication makes this part wont work :\