painful sex and bladder pain!

I've had intense bladder pain and sex hurt yesterday. Does anyone know what could be causing this?