Given a ring $R$, are all modules over $R$ determined, up to isomorphism, by their endomorphism rings?

I read [here](https://iopscience.iop.org/article/10.1088/1742-6596/1245/1/012050/pdf) that if $R$ is a division ring or a simple Artinian ring, this property is true.  

Otherwise, what is an example of two modules over R that are not isomorphic, but their endomorphism ring are isomorphic?